Search code examples
ruby-on-railsruby-on-rails-3facebook-graph-apikoala-gem

Am I posting to Facebook correctly?


Anyone use the Koala gem to post on a Facebook wall before? I am able to post fine (with the picture displayed), but can't seem to have the "share" link on the actual wall post. "Like" and "Comment" appear though.

I have the following:

        client = Koala::Facebook::API.new(user.token)

        options = { 
          :message     => "Message here",
          :description => "Description here",
          :link        => "http://#{APP_CONFIG['host']}/foobars/1", 
          :picture     => "#{photo.url}" 
        }
        client.put_object(user.facebook_uid, 'feed', options)

Am I missing something in options? Would anyone like to share their experience?


Solution

  • Seems to work by changing feed to links:

    client.put_object(user.facebook_uid, 'links', options)