nsanta / fbgraph

Facebook Open Graph API in Ruby
MIT License
324 stars 40 forks source link

Getting 403 forbidden when posting to feed #42

Closed metatroid closed 13 years ago

metatroid commented 13 years ago

I can retrieve information just fine, but cannot post

client = FBGraph::Client.new(:client_id => 'id',   :secret_id => 'secret', :token => current_user.authorizations.find(:all, :conditions => { :provider => 'facebook' })[0]['token'])

Token is derived from omniauth, id and secret are taken from my app page on facebook

client.selection.me.feed.publish!(:message => 'test', :name => 'test')

results in: RestClient::Forbidden: 403 Forbidden

Any ideas?

Thanks

Edit: my omniauth access token was not granting me publish permissions, I modified that and now it's working.

nsanta commented 13 years ago

cool.

reginato commented 12 years ago

Where modified this permission?