Christian Fazzini
Christian Fazzini

Reputation: 19723

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?

Upvotes: 1

Views: 624

Answers (1)

Christian Fazzini
Christian Fazzini

Reputation: 19723

Seems to work by changing feed to links:

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

Upvotes: 4

Related Questions