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