I have converted a GraphObject into an array.
How do I get just the names instead of the whole array? Like: You are friend with..
Bruce Willis
John Travolta
How my code looks like:
$friends = (new FacebookRequest( $session, 'GET', '/me/friends' ))
->execute()
->getGraphObject()
->asArray();
echo '<pre>' . print_r( $friends,1 ) . '</pre>';
And the results looks like this for the moment: