I am trying to display the user's friends by using the following code :
$friends=$facebook->api('/me/friends');
foreach($friends as $key=>$value)
{
foreach($value as $fkey=>$fvalue)
{
echo $fvalue->name;
}
}
But I do not get the user's friends name. I am new to Facebook app development so please help me out with this. Also how can I show the user's friends using the Graph API.