2017 © Pedro Peláez
 

library facebook-laravel

Facebook PHP SDK for Laravel 4.1

image

pageboost/facebook-laravel

Facebook PHP SDK for Laravel 4.1

  • Thursday, March 27, 2014
  • by drekinov
  • Repository
  • 1 Watchers
  • 3 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Facebook PHP SDK for Laravel 4.1

Facebook PHP SDK wrapper package with Facebook Connect support through Laravel Session., (*1)

Most Facebook wrapper packages for Laravel just bootstrap the Facebook class from SDK which use PHP native session and cookies. Native PHP session is ok, but not usable in load balanced applications., (*2)

Moreover Laravel works only with encrypted cookies which increase application security. You can change your session provider to Redis, memcached or whatever and this will not break your Facebook Login integration!, (*3)


Installation

Begin by installing this package through Composer., (*4)

{
    "require": {
        "PageBoost/facebook-laravel": "dev-master"
    }
}

Open app/config/app.php and add following Service Provider and Facade, (*5)

// Provider
'providers' => array(
    'PageBoost\FacebookLaravel\FacebookServiceProvider',
)
// Facade
'aliases' => array(
    'FB' => 'PageBoost\FacebookLaravel\Facades\LaravelFacebook',
)

Configuration

  • Publish package configs php artisan config:publish pageboost/facebook-laravel
  • Customize config.php with your information

Setting details are., (*6)

  • appId: Your facebook app id.
  • secret: Your facebook app secret.
  • laravelDebug: Indicates if api calls and internal BaseFacebook errors should be logged in laravel.log
  • allowSignedRequest: Indicates if signed_request is allowed in query parameters.
  • fileUpload: Indicates if the CURL based @ syntax for file uploads is enabled.
  • trustForwarded: // Indicates if we trust HTTP_X_FORWARDED_* headers.

License

View the license for this repo., (*7)

The Versions

27/03 2014

dev-master

9999999-dev

Facebook PHP SDK for Laravel 4.1

  Sources   Download

MIT

The Requires

 

by Dimitar Rekinov

laravel api sdk facebook laravel facebook facebook sdk