Posting to Facebook with Python and Graph API, Permissions Issue

孤街浪徒 提交于 2019-12-13 02:20:11

问题


Relatively new to interacting with Facebook through the Graph API, so apologies in advance.

I a simply trying to post a facebook status to my own facebook with the python facebook-sdk and the Graph API.

I have authorized a user-access-token with literally every permission:

Sceenshot of Permissions

And then using the API documentation, I am simply doing

graph.put_object(parent_object='me', connection_name='feed',
              message='Hello, world')

With the graph object built by calling the provided access key.

However, I keep getting this error:

facebook.GraphAPIError: (#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission

Any chance you guys know what I'm missing?


回答1:


Posting to your own feed with the API is not possible anymore, the required permission publish_actions has been removed. You can use the share dialog instead.

More information: Facebook "publish_actions" permission



来源:https://stackoverflow.com/questions/52353828/posting-to-facebook-with-python-and-graph-api-permissions-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!