junker / facebook-service-provider
Facebook SDK v5 Service Provider for Silex
0.2.0
2020-06-18 16:07 UTC
Requires
- facebook/graph-sdk: ^5.0
- silex/silex: ~2.0
This package is auto-updated.
Last update: 2024-11-19 01:43:41 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}');