You can try this
$user_friends1 = file_get_contents('https://graph.facebook.com/'.$uid.'/friends?fields=id,name,birthday&access_token='.$access_token); $user_friends = json_decode($user_friends1,1);
now you can find what you want from the $ user_friends array
source share