我使用我的webapp在facebook个人资料,页面和群组上发帖。从早上开始显示错误"发生异常,代码:200,带有消息:(#200)用户未授权申请执行此操作"。 我添加了发布所需的所有权限。
$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');
还有一个问题是我的应用程序正在获取配置文件,所有组和页面。它以chrome格式显示已连接的个人资料图片,群组封面图片和网页个人资料图片,但在其他浏览器和操作系统中均未显示。
答案 0 :(得分:0)
看起来您只是要求获得以下权限:我的公开个人资料和电子邮件地址。