lagden / facebook-service-provider
Facebook PHP SDK Service provide for Silex
v0.2.1
2013-04-27 04:34 UTC
Requires
- php: >=5.3.3
- facebook/php-sdk: 3.2.*
- silex/silex: 1.0.*@dev
This package is not auto-updated.
Last update: 2025-01-14 05:51:14 UTC
README
=========================================
Facebook PHP SDK Service provide for [Silex][1].
Installation
Use [Composer][2].
Install Composer
In your command line, run:
$ curl -s http://getcomposer.org/installer | php
Or [download composer.phar][3] into the project root.
Add FacebookServiceProvider to your composer.json
"require": {
"lagden/facebook-service-provider": "dev-master"
}
Install Dependencies
Run the following command:
$ php composer.phar update
Now the FacebookServiceProvider is installed into your vendor directory.
Registering
$app->register(new Lagden\Silex\FacebookServiceProvider(array( 'facebook.app_id' => 'Your app id', 'facebook.app_secret' => 'Your app secret', )));
Usage
Simply access your facebook object with $app['facebook']
.