require_login();

// Greet the currently logged-in user!
echo “

Hello, !

“;

// Print out at most 25 of the logged-in user’s friends,
// using the friends.get API method
echo “

Friends:”;
$friends = $facebook->api_client->friends_get();
$friends = array_slice($friends, 0, 25);
foreach ($friends as $friend) {
echo “
$friend”;
}
echo “

“;

Leave a Reply

Your email address will not be published. Required fields are marked *