【发布时间】:2016-01-30 09:36:00
【问题描述】:
试图弄清楚为什么我不能使用 Open Graph API 发布到 Facebook 页面(不是个人资料)。
我已提交审核并获得批准的操作。我已获得批准的权限,例如:
manage_pages 发布操作 发布页面
当我在 facebook 个人资料上发帖时,一切正常:
https://graph.facebook.com/me/com-domain:post?access_token={access_token}&method=POST&property={url}&message=test&fb:explicitly_shared=true
问题似乎出在 Facebook 主页上。
首先,我向 /me/accounts 发出请求并获取正确的页面 ID 和页面访问令牌。
https://graph.facebook.com/me/accounts?access_token={access_token}
之后,获取新的访问令牌和页面 ID 向
发出另一个请求https://graph.facebook.com/{PAGE_ID}/com-domain:post?access_token={page_access_token}&method=POST&property={url}&message=test&fb:explicitly_shared=true
得到结果:
{ "error": {
"message": "Unsupported post request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "Ffdsfds" }}
有什么建议吗?谢谢!
【问题讨论】:
标签: facebook-graph-api facebook-page