Post in group

142 views
Skip to first unread message

Henrique Utsch

unread,
Mar 5, 2013, 12:18:52 PM3/5/13
to koala...@googlegroups.com
Hi,

I'm trying to post in facebook but I have an error:
Anybody?

require 'rubygems'
require 'Koala'

graph = Koala::Facebook::API.new("mytoken")
Koala.http_service.http_options = {
  ssl: {
    verify: false
  }
}
graph.put_wall_post("mensagem","305826292878222")

#def put_wall_post(message, attachment = {}, target_id = "me", options = {}, &block)
#        put_connections(target_id, "feed", attachment.merge({:message => message}), options, &block)
#      end


C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/koala-1.6.0/lib/koala/api/graph_api.rb:247:in `put_wall_post': undefined method `merge' for "305826292878222":String (NoMethodError)
from D:/face2.rb:10:in `<main>'


I need post in my facebook group.
Thanks



Rafi Jacoby

unread,
Mar 6, 2013, 10:42:28 AM3/6/13
to koala...@googlegroups.com
I think the problem is in your call to the Koala API helper. Ruby sees the second argument as a value for the 'attachment' argument, it's not jumping it to the 3rd (target_id). You'll need an attachment anyway.





--
You received this message because you are subscribed to the Google Groups "Koala & The Facebook Graph API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to koala-users...@googlegroups.com.
To post to this group, send email to koala...@googlegroups.com.
Visit this group at http://groups.google.com/group/koala-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages