I am using the following which is working perfectly to display friends’ names
$access_token = "___access-token___";
$friendsList = json_decode(file_get_contents("https://graph.facebook.com/me/friends?access_token=".$access_token),true) ;
$data = $friendsList['data'] ;
foreach ($data as $nr => $friends)
{
echo $friends['name'].'<br /><br />'; // line AAA
}
But if try change line AAA to e.g. $friends[‘birthday’] or $friends[‘picture’] I get nothing?? Any ideas?
BTW, RE birthday, I have friends_birthday in scope to allow this info
Define wanted fields directly in the request:
If you are allowed to see the friend’s birthday – it will be in the result row