我读过几篇关于如何通过pythonapi发布Facebook帖子的教程。关于this link的文档说明-
As of April 24,2018, the pubish_actions permission has been removed. Please see the Breaking Changes Changelog for more details. To provide a way for your app users to share content to Facebook, we encourage you to use our Sharing products instead.
仍然遵循以下步骤:
尝试使用图形API资源管理器工具请求发布_页会导致此错误-
Invalid Scopes: publish_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions
尝试使用图形API请求创建帖子:
curl -i -X POST \
-d "url=https://www.facebook.com/images/fb_icon_325x325.png" \
-d "caption=test photo upload" \
-d "access_token=<user_photos_user_access_token>" \
"https://graph.facebook.com/v3.0/me/photos"
此请求导致以下错误消息-
This endpoint is deprecated since the required permissions manage_pages,publish_pages are deprecated
既然publish_pages权限已被弃用,那么如何使用API将文章发布为Facebook页面?在
您需要查看更新的API和权限},这些可以在文档here中看到。在
manage_pages
和{您需要这两个权限才能作为页面发布。{a2还需要对这些应用程序进行详细的权限检查。在
编辑以回答评论中的其他问题: 正如链接文档中所说,令牌在一个小时后过期,您必须请求一个新的令牌。请参阅tokens页的底部。在
相关问题 更多 >
编程相关推荐