首页 > 解决方案 > 将消息发布到墙上时出现权限错误

问题描述

使用 POST 发布到 fb 提要时出现以下错误。使用 GET 方法可以正常工作。是否需要添加任何权限。

message: '(#200) If posting to a group, requires app being installed in the group, and \\\n          either publish_to_groups

具有用户令牌的权限,或者具有页面令牌的 manage_pages \\n 和 publish_pages 权限;如果发布到页面,\\n
需要 manage_pages 和 publish_pages 作为具有 \\n
足够管理权限的管理员,I20191112-19:45:36.182(5.5)?
类型:OAuthException,I20191112-19:45:36.182(5.5)?代码:200,I20191112-19:45:36.183(5.5)?fbtrace_id: AJbuFD_SHxv-s8iOWWyZIVg }

 graph.post("me/feed", wallPost, function(err, res) {

          console.log(res); // { id: xxxxx}
        });

谢谢

标签: facebookfacebook-graph-api

解决方案


无法再发布到用户个人资料:https ://developers.facebook.com/docs/graph-api/changelog/break-changes#login-4-24

您只能使用共享选项,但没有它的 API publish_actions


推荐阅读