Personal I need to return the facebook friends list using the facebook 4 for PHP API. I can login, get the account info but the list only comes the following result for me:
Array
(
[data] => Array
(
)
[summary] => stdClass Object
(
[total_count] => 124
)
)
I am using the following command:
$friends = (new FacebookRequest($session, 'GET', '/me/friends'))
->execute()
->getGraphObject()
->asArray();
echo '<pre>' . print_r( $friends, 1 ) . '</pre>';
And I have the following permissions:
$permissions = array(
'email',
'public_profile',
'user_friends'
);
echo '<a href="' . $helper->getLoginUrl($permissions) . '">Login</a>';
How do I return friends?