This visualization is a tool for the exploration of the demographically-rich data provided by Facebook Marketing API, compararing visually and numerically the number of monthly active users having particular demographic characteristics (either explicitly stated by the users or inferred by Facebook).

To find out more about how to use Facebook Marketing API for demographic and health research, see

Visualizing Health Awareness in the Middle East. Matheus Araújo, Yelena Mejova, Michael Aupetit and Ingmar Weber. International AAAI Conference on Web and Social Media (ICWSM), 2017.

Using Facebook Ads Audiences for Global Lifestyle Disease Surveillance: Promises and Limitations. Matheus Araújo, Yelena Mejova, Ingmar Weber, Fabricio Benevenuto. ACM Web Science Conference (WebSci), 2017.

Exploring Health Awareness in the Middle East by Visual Slice and Dice of Facebook Data. Michael Aupetit, Matheus Araujo, Yelena Mejova, Ingmar Weber. Visual Analytic for Health Care Workshop at IEEE VIS, 2017.

Leveraging Facebooks Advertising Platform to Monitor Stocks of Migrants. Emilio Zagheni, Ingmar Weber, Krishna Gummadi. Population and Development Review (to appear), 2017.


1) Refine your selection by demographic.

The treemaps on the left of the map are a powerful tool where you can filter and explore the data by gender, age range, education, citizenship, and the kind of device user has.

Click in each treemap's tile to filter the visualization, and again to remove the filter, and the application will dynamically update its visualization as you explore.

2) Refine your selection by geolocation using the map.

Use either the map or the buttons on the right to select and de-select zip codes. Each zip code is shaded according to the proportion of users who match the demographic selection, with more color meaning higher proportion users matched. Under the map you can find the color scale explaining the extent of concentration portrayed by each color. Additionally, you can find more information about each zip code in a mouse-over floating window.

3) Explore regional data.

To the right of the map, you can scroll through the listing of all zip codes (in case you want to find a particular one), as well as select and de-select zip codes to be included in the visualization. Finally, if you are interested in the data being displayed, you can download the summary statistics of particular selection in .xlsx format using Download Data Summary button.


For example, if you want to see the distribution of iOS users, select iOS from Devices on the left. Judging from the colors on the map, we can find more iOS users in the Manhattan area, and less so in Bronx. Also, try toggling iOS selection on and off while watching other demographics change. You will notice that proportion of educated users ("Grad"), as well as proportion of women, increases slightly with iOS selected. To compare the raw data of the two selection side by side, use Download Data Summary.

Click here to see it in the application link.

Contact the authors: