facebook - 将消息发布到墙上时出现权限错误
问题描述
使用 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}
});
谢谢
解决方案
无法再发布到用户个人资料:https ://developers.facebook.com/docs/graph-api/changelog/break-changes#login-4-24
您只能使用共享选项,但没有它的 API publish_actions
。
推荐阅读
- excel - Excel VBA 添加参考库而不关闭用户窗体 GUI
- kubernetes - 与节点的连接在身份验证期间终止。这可能表明身份验证因凭据无效而失败
- rundeck - Web 代理背后的 Rundeck
- python - 在使用 facebook/instagram 信息的程序上需要帮助
- java - Spring boot Hibernate 数据源异常 null 应用程序启动异常
- html - 当屏幕尺寸缩小时,允许 Flexbox 项目靠得更近
- c - MPI:发送和接收动态分配的子矩阵
- json - React 和 json-server
- swift - 索引超出范围的 SwiftUI 问题
- arrays - 如何追加一个数组,然后将增量行输入到python中的函数中