In this application a user will be able to classify all of his/her friends according to the cities in which they currently reside.
You should have already created
config.php as mentioned in the beginning of the third chapter. Additionally, you should also provide
user_location extended permission to the application.
The following steps will demonstrate the creation of this application:
index.phpand append the following code after the HTML
<body>tag. Select the location, name, user ID, and profile picture of the user's friends by using FQL:
<?php $friends = $facebook->api(array('method' => 'fql.query', ...