Skip to content

Latest commit

 

History

History
67 lines (40 loc) · 1.69 KB

installation.md

File metadata and controls

67 lines (40 loc) · 1.69 KB

Installation

Local installation of this application consists of the following steps:

Facebook Application

Create a new Facebook Application in developers.facebook.com from the My Apps menu:

Facebook Application

For this script to work, the default settings will do:

Facebook Application Dashboard

Composer

Install the code with Composer:

git clone git://github.com/wwphp-fb/stats
cd stats
composer install

Configuration

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.

Generate Report

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.

User Access Token

The only permission required for the application to work is the user_managed_groups.

Permissions