Getting Started with Facebook - strohne/Facepager GitHub Wiki
-
Create a database: click
New Database
in the Menu Bar. -
Login to Facebook: In the Facebook tab of the Query Setup click on
Login to Facebook
to get a valid access token. Notice: the Access Token is like a password to Facebook. Since it may be printed in the status log and saved in the application settings don't give anyone untrusted access to your computer or to the status log. -
Add nodes: Add Facebook IDs by clicking
Add Nodes
in the Menu Bar. Depending on what you want to fetch you have to use different kind of object IDs as start nodes (see https://github.com/strohne/Facepager/wiki/Query-Setup.-Facebook#data-types for the different data types). For example, to collect posts you have to use page IDs. Enter the last part of a Facebook page, e.g. enter "Uni.Greifswald.de" for the page "https://www.facebook.com/Uni.Greifswald.de" or enter "TheAcademy" for the page "https://www.facebook.com/TheAcademy". -
Setup query: The query settings are also dependent on what you want to fetch. To collect posts you can use one of our Facebook presets from the preset section at the menu bar or type
https://graph.facebook.com/v14.0
into the Base path field of the Query Setup. Type/<page-id>/posts
into the Resource field. Delete any Parameters. Then add just one parameter: the termfields
goes into the left side, the termmessage, from, created_time, updated_time
goes into the right side. See https://developers.facebook.com/docs/graph-api/reference/v14.0/page/feed for other fields if you like.
-
Fetch data: Select one or more nodes in the Nodes View and click
Fetch data
. Look at the Status Log (make sure "Log all requests" was enabled) to see how the URL is assembled from your settings. -
Inspect data: Expand your node or click
Expand nodes
in the Menu Bar to open all nodes. Select one of the new child nodes. The raw data is shown in the Data View to the right. -
Setup columns: Click
Clear Column Setup
below the "Custom Table Columns" area. Change the Column Setup according to your needs by adding keys found in the raw data into the "Custom Table Columns" area. You can useAdd Column
after you clicked on the specific key or just useAdd All Columns
. Don't forget to clickApply Column Setup
in the Column Setup to add them in the Nodes View. If the columns don't show up make sure to scroll right or to resize the columns (click between the headers). -
Export data: Click
Export Data
to get a CSV file. Notice the options in the export mode field of the export dialog. You can open CSV files with Excel oder any statistics software you like.
What is next?
- Try out the other default presets by clicking the
Presets
button. Here you find examples about how to get comments of a post or detail data about posts. - Learn about the Basic Concepts and get familiar with the General Settings.
- Get familiar with the Facebook Graph API by reading the section in this wiki and the reference on Facebook.