2017 © Pedro Peláez
 

library laravel-facebook

A Facebook component for Laravel.

image

zejesago/laravel-facebook

A Facebook component for Laravel.

  • Wednesday, July 26, 2017
  • by zejesago
  • Repository
  • 3 Watchers
  • 1 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Laravel Facebook

A Facebook component for Laravel which leverages on Laravel's Facades., (*1)

Normally:, (*2)

$facebook = new Facebook(array(
  'app_id'     => 'YOUR_APP_ID',
  'app_secret' => 'YOUR_APP_SECRET',
));

// Get User ID
$user = $facebook->getUser();

Now:, (*3)

// Get User ID
$user = Z\Facebook::getUser();

Laravel Facebook currently supports Facebook 5.6 and Laravel 4.0., (*4)

Installation

  1. Add the package in your composer.json file, then execute a php composer.phar install (or composer install) command from your root directory.
  2. Register the package, typically, by adding 'Zejesago\Laravel\Facebook\ServiceProvider' in the providers array in app/config/app.php.
  3. (Optional) Add an alias in the aliases array in app/config/app.php. E.g. 'Z\Facebook' => 'Zejesago\Laravel\Facebook\Facade'.
  4. Run php artisan config:publish zejesago/laravel-facebook to create your app-specific configuration, where you can set your app ID and secret.

Testing

When doing unit testing, you may encounter some session errors thrown when instatiating Facebook., (*5)

Include the following snippet in phpunit.xml:, (*6)

<php>
    <server name="HTTP_HOST" value="localhost"/>
    <server name="REQUEST_URI" value="/"/>
    <server name="path" value="localhost"/>
</php>

then run your tests with the --stderr flag to prevent HTTP header generation interruptions., (*7)

The Versions

26/07 2017

dev-master

9999999-dev

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

26/07 2017

3.1.1

3.1.1.0

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

26/07 2017

3.1.0

3.1.0.0

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

26/07 2017

3.0.1

3.0.1.0

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

26/07 2017

3.0.0

3.0.0.0

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

02/12 2013

dev-develop

dev-develop

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

02/12 2013

2.0.0

2.0.0.0

A Facebook component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook

07/11 2013

1.0.0

1.0.0.0

A social component for Laravel.

  Sources   Download

MIT

The Requires

 

laravel facebook