I am using facebook graph api to access mutual friend list using PHP
Here’s how I am doing it
$url = "https://graph.facebook.com/me/mutualfriends/123456788?access_token=1457856"; $user = json_decode(file_get_contents($jsonurl));
I am now printing the result via print_r($user->data) and following is the output
Array
(
[0] => stdClass Object
(
[name] => XYZ
[id] => 123
)
)
Array
(
[0] => stdClass Object
(
[name] => YZX
[id] => 235
)
)
I need to get name and Id of the mutual friends from the above resultset using PHP
What should be the next step for this?
It would be the same like
$user->data:I have tested this on the following data: