I cannot getting my friends on facebook with the API
if($session->get_provider() == 'facebook') {
$access_token = $grabber->get_facebook_access_token($auth_code);
$extended_token = $grabber->get_facebook_extended_token($access_token);
//echo $extended_token;
$url = 'http://ift.tt/zofBYA'.$extended_token;
$result = $grabber->curl_query_get($url);
var_dump($result);
echo "</br></br></br>";
$url = 'http://ift.tt/wmQl6x'.$extended_token;
$result = $grabber->curl_query_get($url);
var_dump($result);
}
DUMP
string(73) "{ "data": [ ], "summary": { "total_count": 9 } }"
string(438) "{ "data": [ { "permission": "public_profile", "status": "granted" }, { "permission": "email", "status": "granted" }, { "permission": "user_photos", "status": "granted" }, { "permission": "user_videos", "status": "granted" }, { "permission": "user_friends", "status": "granted" } ] }"
data array returns empty with PHP/javascript sdk as well, any idea? thx
Aucun commentaire:
Enregistrer un commentaire