使用Python和Graph API发布到Facebook,权限问题 [英] Posting to Facebook with Python and Graph API, Permissions Issue

查看:103
本文介绍了使用Python和Graph API发布到Facebook,权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过Graph API与Facebook互动相对较新,因此请提前道歉.

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

我只是尝试使用python facebook-sdk和Graph API将Facebook状态发布到我自己的Facebook.

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:

权限场景

然后使用API​​文档,我只是在做

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)需要在组中安装publish_to_groups权限和应用程序,或者以具有足够管理权限的管理员身份管理manage_pages和publish_pages

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?

推荐答案

现在无法再使用API​​发布到您自己的供稿中,所需的权限publish_actions已被删除.您可以改用共享对话框.

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.

更多信息: Facebook上的"publish_actions"权限

这篇关于使用Python和Graph API发布到Facebook,权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆