Local installation of this application consists of the following steps:
Create a new Facebook Application in developers.facebook.com
from the My Apps
menu:
For this script to work, the default settings will do:
Install the code with Composer:
git clone git://github.com/wwphp-fb/stats
cd stats
composer install
The Composer installation script creates app/config/parameters.yml
file
by asking for configuration parameter values. Configuration parameters are
described in comments in the parameters.yml.dist.
Provide ID and secret code for your Facebook application, default Graph API version
and other configuration. Configuration is explained in more details in the
configuration chapter.
Run the report generation:
bin/stats generate --from=2016-09-05 --to=2016-09-11
Before generation starts, you must also provide the user access token manually.
You must provide an access token.
Enter user access token from the Graph API Explorer
https://developers.facebook.com/tools/explorer
To generate the user access token, use Graph API explorer and select the application created in step 1.
The only permission required for the application to work is the user_managed_groups
.