skip to Main Content

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

Get page photo likes from facebook open graph – Facebook api

Using PHP, i can retrieve the images from a facebook page using a URL like this: https://graph.facebook.com/v2.7/albumid/photos?access_token=XXXXXXX&debug=all&fields=images&format=json&method=get&pretty=1&suppress_http_code=1 But how can i get the likes count for each photos ? The URL above only returns image url, width and height. I'm…

VIEW QUESTION
Back To Top
Search