facebook-php-sdk

Error (#200) The user hasn't authorized the application to perform this action

徘徊边缘 提交于 2019-12-01 16:02:16
I would like to send messages to a Facebook page with PHP but I have this error (#200) The user hasn't authorized the application to perform this action. I'm the administrator of the Facebook page and the Facebook application. I think I have this problems because I don't have the good permissions but I don't know how to have this. I have search in many many pages with same question in the web but I don't have find the answer. They are my permissions. array(1) { ["data"]=> array(3) { [0]=> array(2) { ["permission"]=> string(9) "installed" ["status"]=> string(7) "granted" } [1]=> array(2) { [

Not getting email from facebook API while login

偶尔善良 提交于 2019-12-01 15:59:15
问题 I have a problem while login i can't get email even while adding email to User & Friend Permissions (for some facebook accounts). i'm using facebook-php-sdk, this the code that im using $facebook_user_profile = $facebook->api('/me', array('fields' => 'id,email,first_name,last_name,picture')); please can any one save my day ? 回答1: Apart from what CBroe commented about asking for the permissions using the "scope" parameter while logging in to grab permissions, you must also consider the fact

Object with ID '203618703567212' does not exist, cannot be loaded due to missing permissions, or does not support this operation

隐身守侯 提交于 2019-12-01 15:28:02
问题 After the facebook have updated the Graph API and it's request I am facing this error Unsupported get request. Object with ID '203618703567212' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api I have the access token with all the valid permissions and access token is valid too, URL is https://graph.facebook.com/v2.9/203618703567212/?fields=cover&access

Error (#200) The user hasn't authorized the application to perform this action

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 14:57:58
问题 I would like to send messages to a Facebook page with PHP but I have this error (#200) The user hasn't authorized the application to perform this action. I'm the administrator of the Facebook page and the Facebook application. I think I have this problems because I don't have the good permissions but I don't know how to have this. I have search in many many pages with same question in the web but I don't have find the answer. They are my permissions. array(1) { ["data"]=> array(3) { [0]=>

Is it possible to get the User Id without the authorization?

对着背影说爱祢 提交于 2019-12-01 14:53:40
Is it possible to get the user ID without authorization? It used to work with getUser but it doesn't now. Are these new changes from Facebook or is there any other possibility to get user ID or the name to welcome the user? No, users must give permission before you can get their user id. See http://developers.facebook.com/docs/reference/api/permissions/ Basic Information When a user allows you to access their basic information in an auth dialog, you have access to their user id, name, profile picture, gender, age range, locale, networks, user ID, list of friends, and any other information they

Facebook PHP SDK v5 : Read Page Public Feeds?

时间秒杀一切 提交于 2019-12-01 13:50:56
(I'm new to Facebook SDK) I installed Facebook PHP SDK v5 by this way: # ./composer.phar require facebook/php-sdk-v4 Then here is my first page which gets the User Access Token successfully. <?php require_once 'vendor/autoload.php'; $fb = new Facebook\Facebook([ 'app_id' => '<my-valid-app-id>', 'app_secret' => '<my-valid-app-secret>', 'default_graph_version' => 'v2.6', 'persistent_data_handler'=>'session', ]); $helper = $fb->getRedirectLoginHelper(); $accessToken = ""; if ( isset($_SESSION["facebook_access_token"]) ) { $accessToken = $_SESSION["facebook_access_token"]; } if ( $accessToken==""

Facebook PHP SDK v5 : Read Page Public Feeds?

老子叫甜甜 提交于 2019-12-01 13:10:33
问题 (I'm new to Facebook SDK) I installed Facebook PHP SDK v5 by this way: # ./composer.phar require facebook/php-sdk-v4 Then here is my first page which gets the User Access Token successfully. <?php require_once 'vendor/autoload.php'; $fb = new Facebook\Facebook([ 'app_id' => '<my-valid-app-id>', 'app_secret' => '<my-valid-app-secret>', 'default_graph_version' => 'v2.6', 'persistent_data_handler'=>'session', ]); $helper = $fb->getRedirectLoginHelper(); $accessToken = ""; if ( isset($_SESSION[

how can i get the code id from FacebookApiException $e?

时光毁灭记忆、已成空白 提交于 2019-12-01 12:58:09
问题 how can i get the code id from FacebookApiException $e ? I am using Facebook to post. but sometimes it fails to post the content. I am using these codes below, and I find the error response code id in array $e , but all them are protected, how can i get the code then? try{ $facebook->setAccessToken($access_token); $rs= $facebook->api('/me/feed','POST',$post_data); } catch (FacebookApiException $e) { print_r($e); } then I get the error info: FacebookApiException Object ( [result:protected] =>

facebook->getUser() returning 0

痞子三分冷 提交于 2019-12-01 12:44:10
Whenever I try to login a prompt opens asking for the basic permissions, after that its being redirected to my redirect_uri with an URL =">http://localhost/demo/?code=AQDwzia3Wx1BktixF59jVHbm0ViGVJm8Xhb2tNZDyYreZh0KoSJhrSsJ8Aa2KX3gocwR0XNQjQz7ZlBh26_nBi-3iOMByhVO2cxwJ8maC4IHxBacfqXjzqIyBaZQbWKUUxPI6VBrqBgFXQasj7PEtmug7lt93dK4fmMC2A4i2dUYU-gSvzn0f0ZdB3eT_aSvgR1KoLCmQgLh3xix4H05QR6LCP9nLtQC4l9rMJW83kS0PNmWq0COZYvGfuX1R7519Fn3iXRB9F0MTsK1KQ_ulpK84PUCkuMu8et88Lln0ZwuzaPo0oERelkPWYnrrTKa-5w&state=ed66ea618d8076d9e72c15d9a65a6312# = Even though facebook->getUser() returns 0 Here is my code <?php

Get FB likes, shares and comments for a URL using PHP - with no limit [closed]

 ̄綄美尐妖づ 提交于 2019-12-01 12:42:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . How can I simple get count of likes, shares and comments from a URL using PHP? The method using FQL or graph.facebook.com didnt work anymore. I need also about 1000 requests per day, I need solution with request limit more then 1000. 回答1: I think that FQL became deceprated by the