lagden/facebook-service-provider

Facebook PHP SDK Service provide for Silex

Installs: 80

Dependents: 0

Watchers: 1

Forks: 1

Language: PHP

v0.2.1 2013-04-27 04:34 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'].