skip to Main Content

get admin_creator of a post Facebook api

I need to get the userid of the person who creates the post, and based on the documentation: https://developers.facebook.com/docs/graph-api/reference/v2.9/post#read This information is in the admin_creator field. Example: {post-id}?fields=admin_creator I am already the admin of the page and manage_pages permission, so…

VIEW QUESTION

Access variable Array Data PHP – Facebook api

i have the following Array Structure from Facebook Graph API response. "data": [ { "actions": [ { "action_type": "comment", "value": "2" }, { "action_type": "offsite_conversion", "value": "1606" } ], "date_start": "2017-04-03", "date_stop": "2017-05-02" }, { "actions": [ { "action_type": "post",…

VIEW QUESTION

Facebook Graph API not returning email – Facebook api

I have the following code: $fb = new Facebook([ 'app_id' => $appId, 'app_secret' => $appSecret, 'default_graph_version' => 'v2.9', ]); $oAuth2Client = $fb->getOAuth2Client(); $tokenMetaData = $oAuth2Client->debugToken($accessToken); dump($tokenMetaData); $graphUser = $fb->get('/me?fields=first_name,last_name,email', $accessToken)->getGraphUser()->asArray(); dump($graphUser); The output for the above is the following: $metaData:…

VIEW QUESTION
Back To Top
Search