Giter VIP home page Giter VIP logo

facebook-laravel's Introduction

Facebook PHP SDK for Laravel 4.1

Facebook PHP SDK wrapper package with Facebook Connect support through Laravel Session.

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.

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!


Installation

Begin by installing this package through Composer.

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

Open app/config/app.php and add following Service Provider and Facade

// 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.

  • 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.

facebook-laravel's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.