[英]Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action
I have seen many questions related to my question and also I read all answers but these answers can't solve my problem. 我已经看到许多与问题相关的问题,并且阅读了所有答案,但这些答案无法解决我的问题。
My problem is this I have manage_pages and publish_actions permissions but I can not post on my page as a admin. 我的问题是,我具有manage_pages和publish_actions权限,但无法以管理员身份发布到页面上。 I have a vast experience in facebook api. 我在Facebook API方面拥有丰富的经验。 I am using facebook page access token for uploading status as a admin 我正在使用Facebook页面访问令牌以管理员身份上传状态
$result = $facebook->api(
'/'.$pageid.'/feed/',
'post',
array('access_token' => $pagetokon, 'message' => $posts)
);
but It shows this error 但是它显示了这个错误
"Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action" “未捕获的OAuthException:(#200)用户未授权应用程序执行此操作”
How ever When I post on page without page access token then It successfully posted. 但是,当我在没有页面访问令牌的页面上发布时,它成功发布了。 but It posted with user name not with admin name. 但是它以用户名而不是管理员名发布。
As mentioned by @CBroe, as of v2.3 a new permission ( publish_pages
) for pages was introduced: 如@CBroe所述,从v2.3 publish_pages
开始,引入了页面的新权限 ( publish_pages
):
publish_pages
Permission - This new permission is required to publish as a Page.publish_pages
权限 -此新权限需要作为页面发布。 Previously publish_actions was required. 以前需要publish_actions。 People who granted manage_pages and publish_actions before v2.3 have automatically been granted publish_pages. 在v2.3之前授予了manage_pages和publish_actions的人员将自动被授予publish_pages。 If anyone logs in via v2.3, you'll need to request publish_pages explicitly in addition to manage_pages. 如果有人通过v2.3登录,则除了manage_pages外,您还需要显式请求publish_pages。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.