2017 © Pedro Peláez
 

library laravel-facebook

Laravel 4 support for Facebook SDK

image

irazasyed/laravel-facebook

Laravel 4 support for Facebook SDK

  • Friday, October 3, 2014
  • by irazasyed
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,100 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel-Facebook Package

[Join PHP Chat][link-phpchat] ![Chat on Telegram][ico-telegram] Laravel Package ![Latest Version on Packagist][ico-version] Software License ![Build Status][ico-travis] Total Downloads, (*1)

Laravel 4 Support for Facebook PHP SDK and additional helper methods., (*2)

Quick start

Required setup / Installation

You can either add the package directly by firing this command, (*3)

$ composer require irazasyed/laravel-facebook:^1.0

Or add in the require key of composer.json file manually by add the following, (*4)

"irazasyed/laravel-facebook": "^1.0"

And Run the Composer update comand, (*5)

$ composer update

In your app/config/app.php add 'Irazasyed\LaravelFacebook\LaravelFacebookServiceProvider' to the end of the $providers array, (*6)

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Irazasyed\LaravelFacebook\LaravelFacebookServiceProvider',

),

At the end of app/config/app.php add 'FB' => 'Irazasyed\LaravelFacebook\FacebookFacade' to the $aliases array, (*7)

'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'FB'    => 'Irazasyed\LaravelFacebook\FacebookFacade',

),

NOTE: Don't use Facebook as your facade alias as it conflicts with the SDK itself. Because the SDK doesn't have namespace (And they ain't adding it either)., (*8)

Configuration

Copy the config file into your project by running, (*9)

php artisan config:publish irazasyed/laravel-facebook

It'll publish under app/config/packages, (*10)

Edit the config file to include your App ID and secret key into init option. See config file for more configuration options., (*11)

And you are ready to go., (*12)

Usage

This Package extends the Facebook PHP SDK, So all the methods listed here http://developers.facebook.com/docs/reference/php/ are available, as well as the following methods/helpers., (*13)

Adding Soon!, (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

03/10 2014

dev-master

9999999-dev

Laravel 4 support for Facebook SDK

  Sources   Download

MIT

The Requires

 

by Syed I.R

laravel facebook laravel facebook graph api facebook sdk facebook api

03/10 2014

v1.0.1

1.0.1.0

Laravel 4 support for Facebook SDK

  Sources   Download

MIT

The Requires

 

by Syed I.R

laravel facebook laravel facebook graph api facebook sdk facebook api

07/09 2014

v1.0

1.0.0.0

Laravel 4 support for Facebook SDK

  Sources   Download

MIT

The Requires

 

by Syed I.R

laravel facebook laravel facebook graph api facebook sdk facebook api