junker/facebook-service-provider

Facebook SDK v5 Service Provider for Silex

0.2.0 2020-06-18 16:07 UTC

This package is auto-updated.

Last update: 2024-10-19 01:31:27 UTC


README

Facebook SDK v5 Service Provider for Silex

Requirements

silex 2.x

Installation

The best way to install FacebookServiceProvider is to use a Composer:

composer require junker/facebook-service-provider

Examples

use HSAL\HSAL;
use Junker\Silex\Provider\FacebookServiceProvider;

$app->register(new FacebookServiceProvider(), [
    'facebook.options' => [
        'app_id' => 'my App id',
        'app_secret' => 'my App secret key',
        'default_graph_version' => 'v2.10',
        'default_access_token' => '{access-token}' // optional
    ]
]);

    $response = $app['facebook']->get('/me', '{access-token}');

Documentation

Facebook PHP Documentation