我正在尝试向 Facebook API 发出 POST 请求以创建即时文章,如下所示:
curl \
-F 'access_token={access token}' \
-F 'html_source="<!doctype html><html>blah blah blah</html>"' \
-F 'published=true' \
-F 'development_mode=false' \
https://graph.facebook.com/{page-id}/instant_articles
我是该应用的管理员,当我调试访问 token 时,范围显示email、pages_show_list、pages_manage_instant_articles、public_profile
,但请求返回此错误:
{"error":
{"message":"(#200) Requires pages_manage_instant_articles permission to manage the object",
"type":"OAuthException",
"code":200,
"fbtrace_id":"Exyv2VtZ5m4"}
}
有人对发生的事情有任何想法吗?谢谢,如果您需要更多信息,请告诉我!
最佳答案
解决了!我将版本添加到网址中。
https://graph.facebook.com/v2.7/{page-id}/instant_articles
关于facebook-graph-api - Facebook API 即时文章的权限问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39399066/