使用图表 api 作为用户发布内容
Posting content as a user using graph api
我正在尝试 post 使用 Facebook 图 api 的用户内容,但我无法这样做。
根据文档,
link
Publishing
You can only publish to a Page and only with a Page access token of a Page if you can perform the CREATE task on the Page.
还有link
Updating
You can publish posts by using the /{user-id}/feed, /{page-id}/feed, /{event-id}/feed, or /{group-id}/feed edges.
根据上述文档,我正在使用 POST v7.0/{user-id}/feed 到 post 数据,正文为'消息=你好'。
但作为回应我得到:
{
"error": {
"message": "(#200) If posting to a group, requires app being installed in the group, and \
either publish_to_groups permission with user token, or both pages_read_engagement \
and pages_manage_posts permission with page token; If posting to a page, \
requires both pages_read_engagement and pages_manage_posts as an admin with \
sufficient administrative permission",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AFMLDOB0UJOGejUhnOUSgtN"
}
}
所以我的问题是,我可以 post 只在群组或页面中而不是作为个人用户吗?
在此先感谢您的帮助。
无法再发布到用户供稿,所需权限 publich_actions
已在不久前删除。
我正在尝试 post 使用 Facebook 图 api 的用户内容,但我无法这样做。
根据文档, link
Publishing
You can only publish to a Page and only with a Page access token of a Page if you can perform the CREATE task on the Page.
还有link
Updating
You can publish posts by using the /{user-id}/feed, /{page-id}/feed, /{event-id}/feed, or /{group-id}/feed edges.
根据上述文档,我正在使用 POST v7.0/{user-id}/feed 到 post 数据,正文为'消息=你好'。
但作为回应我得到:
{
"error": {
"message": "(#200) If posting to a group, requires app being installed in the group, and \
either publish_to_groups permission with user token, or both pages_read_engagement \
and pages_manage_posts permission with page token; If posting to a page, \
requires both pages_read_engagement and pages_manage_posts as an admin with \
sufficient administrative permission",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AFMLDOB0UJOGejUhnOUSgtN"
}
}
所以我的问题是,我可以 post 只在群组或页面中而不是作为个人用户吗?
在此先感谢您的帮助。
无法再发布到用户供稿,所需权限 publich_actions
已在不久前删除。