I am using the following code to get list of friends in my friend list on Facebook :
//get the user's access token
$access_token = $facebook->getAccessToken();
//check permissions list
$permissions_list = $facebook->api(
'/me/permissions',
'GET',
array(
'access_token' => $access_token
)
);
$frnds= $facebook->api('/me/friends');
echo sizeof($frnds['data']).'<br>';
foreach($frnds['data'] as $frn)
{
echo $frn['name'].'<br>';
}
The no. of friends i.e. sizeof($frnds['data']) comes out to be less then the friends actually displayed on my facebook profile. I wonder WHY?