We can retrieve statistical information corresponding to the visitors who use our application such as their cities, countries, age, gender, and so on. Here, we will do so by using the FQL multiquery method.
You should have created
config.php as mentioned in the beginning of Chapter 3, Querying Facebook. Also, you should have provided
read_insights extended permission to the application.
The following steps will demonstrate how to acquire visitor statistics:
index.phpand append the following code to it:
<?php $app_id = "your_app_id";
$multi_queries = array();