【发布时间】:2019-08-10 08:10:48
【问题描述】:
我试图在 Facebook 页面上发布一些内容。
从这篇文章看来publish using Facebook APIpublish using Facebook API似乎真的很容易
所以,我创建了一个 Facebook 页面,并确保我拥有给定身份验证令牌所需的所有权限,由 Postman 打开并创建一个 POST 请求到以下 URL(以及附加我的访问权限)令牌持有者)
https://graph.facebook.com/2984640844138/feed?message=HeyWhatever
这给了我以下错误
{
"error": {
"message": "(#200) If posting to a group, requires app being installed in the group, and \\\n either publish_to_groups permission with user token, or both manage_pages \\\n and publish_pages permission with page token; If posting to a page, \\\n requires both manage_pages and publish_pages as an admin with \\\n sufficient administrative permission",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "D1z1soQbTE2"
}
}
我不确定我做错了什么,也许我的请求不正确或者我没有正确使用邮递员。
这就是我在 Postman 中所做的事情(截图如下),有人能指出我做错了什么吗?另外,也欢迎提出建议
【问题讨论】:
-
我不确定 API 是否支持通过
Authorization: Bearer …标头(?)提供令牌 - 尝试将其作为名称为access_token的普通请求参数提供。
标签: javascript facebook postman