Facebook错误(#200)用户尚未授权应用程序执行此操作(PHP) [英] Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP)

查看:115
本文介绍了Facebook错误(#200)用户尚未授权应用程序执行此操作(PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用我的webapp.since上午发布在Facebook个人资料,页面和组上,显示错误异常发生,代码:200与消息:(#200)用户尚未授权应用程序执行此操作。
我添加了发布所需的所有权限。

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". 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');

另外还有一个问题是我的应用程序提取配置文件,所有组和页面。它显示连接的个人资料图像,组合封面图像和页面配置文件图像在chrome,但不在其他浏览器和操作系统。

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.

我的应用程序的URL是 http://picstun.com/socialsharing/

My app url is http://picstun.com/socialsharing/

推荐答案

看起来您只是要求:我的公开个人资料和电子邮件地址。

looks like you are only requesting permission for: My public profile and email address.

这篇关于Facebook错误(#200)用户尚未授权应用程序执行此操作(PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆