简体   繁体   English

未捕获的OAuthException:(#200)用户尚未授权应用程序执行此操作

[英]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.

相关问题 在未捕获的 OAuthException 上继续 Crontab 脚本:(#200) 用户尚未授权应用程序执行此操作\ - Contiuning Crontab Script on Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action\ Facebook OAuthException:“用户尚未授权应用程序执行此操作” - Facebook OAuthException: “user hasn't authorized the application to perform this action” 错误:#200用户未授权应用程序执行此操作 - Error:#200 The user hasn't authorized the application to perform this action 用户尚未授权应用程序执行此操作(#200) - the user hasn't authorized the application to perform this action(#200) 错误(#200)用户未授权应用程序执行此操作 - Error (#200) The user hasn't authorized the application to perform this action php(#200)用户未授权应用程序执行此操作 - php (#200) The user hasn't authorized the application to perform this action Php Post Facebook Graph返回错误:(#200)用户未授权应用程序执行此操作 - Php Post Facebook Graph returned an error: (#200) The user hasn't authorized the application to perform this action Facebook-sdk给出了“(#200)用户没有授权应用程序执行此操作”在带有codeigniter的自动帖子上 - Facebook-sdk Gives “(#200) The user hasn't authorized the application to perform this action” on auto post with codeigniter Facebook错误(#200)用户未授权应用程序执行此操作(PHP) - Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP) 在Facebook Wal上发布时,如何解决“(#200)用户未授权应用程序执行此操作”错误 - How to fix “(#200) The user hasn't authorized the application to perform this action” error while posting on facebook wal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM