mardi 24 février 2015

Unable to upload photos to a Facebook group via the Koala API

I have a Rails web app that allows the user to upload photos to a Facebook group. The photos are uploaded through the Koala API, and it is done as followed:



graph = Koala::Facebook::API.new(access_token)
graph.put_picture(photofile, {message: message}, fb_group_id)


the access_token has the basic permissions including public_profile, email and user_friends.


About two weeks ago this method stopped working, and it is giving me this error:



Koala::Facebook::ClientError (type: OAuthException, code: 200, message: (#200) Requires extended permission: publish_actions [HTTP 403]):


I do not recall it requires publish_actions to upload photos to a group.


Below is the environment info:


Ruby: 2.1.0p0 (2013-12-25 revision 44422)

Rails: 4.0.2

Koala: 1.11.1


Anyone please advice?


Aucun commentaire:

Enregistrer un commentaire