简体   繁体   English

Facebook错误(#200)用户未授权应用程序执行此操作(PHP)

[英]Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP)

I am posting on facebook profile, pages and groups using my webapp.since morning it showing error "Exception occured, code: 200 with message: (#200) The user hasn't authorized the application to perform this action". 我使用我的webapp在Facebook个人资料,页面和组上发布。自早上起,它显示错误“发生异常,代码:200,消息:(#200)用户未授权应用程序执行此操作”。 I added all permissions required for posting. 我添加了发布所需的所有权限。

 $loginUrl = $helper->getLoginUrl( ["public_profile", "user_groups","publish_actions","email","user_location","user_photos",    "user_likes","manage_pages","user_birthday","user_status","read_stream"] );

$requestPage = new FacebookRequest($session, 'GET', 'post_on_page_id?fields=access_token');
                        $responsePage = $requestPage->execute();
                        $resultPage = $responsePage->getGraphObject()->asArray();
                        $pageToken = $resultPage['access_token'];
                        $facebookSession = new FacebookSession($pageToken);
                        $response = (new FacebookRequest( $facebookSession, 'POST', 'post_on_page_id/photos',array('source' => new CURLFile("$userPhoto", 'image/png'),'message' => "$message")))->execute()->getGraphObject();
                        $page_post_id=$response->getProperty('id');

And one more problem is that my app fetching profile, all groups and pages. 还有一个问题是我的应用程序正在提取配置文件,所有组和页面。 It's showing connected profile image, group cover image and page profile image in chrome, but not in other browsers and operating systems. 它在chrome中显示已连接的个人资料图片,群组封面图片和页面个人资料图片,但在其他浏览器和操作系统中则未显示。

My app url is http://picstun.com/socialsharing/ 我的应用程序网址是http://picstun.com/socialsharing/

看来您只要求获得以下权限:我的公开个人资料和电子邮件地址。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Php Post Facebook Graph返回错误:(#200)用户未授权应用程序执行此操作 - Php Post Facebook Graph returned an error: (#200) The user hasn't authorized the application to perform this action (#200)用户未授权应用程序执行此操作facebook php api错误? - (#200) The user hasn't authorized the application to perform this action facebook php api error? 错误 (#200) 用户尚未授权应用程序执行此操作 facebook graph api php codeigniter - Error (#200) The user hasn't authorized the application to perform this action facebook graph api php codeigniter php(#200)用户未授权应用程序执行此操作 - php (#200) The 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)用户未授权应用程序执行此操作 - Error (#200) The user hasn't authorized the application to perform this action 在Facebook Wal上发布时,如何解决“(#200)用户未授权应用程序执行此操作”错误 - How to fix “(#200) The user hasn't authorized the application to perform this action” error while posting on facebook wal 未捕获的OAuthException:(#200)用户尚未授权应用程序执行此操作 - Uncaught OAuthException: (#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) 尝试使用php发布到Facebook时出现FacebookPermissionException错误“用户未授权应用程序执行此操作” - FacebookPermissionException error whilst trying to use php to post to facebook “The user hasn't authorized the application to perform this action”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM