Package Data | |
---|---|
Maintainer Username: | aamant |
Maintainer Contact: | arnaud.amant@gmail.com (Arnaud Amant) |
Package Create Date: | 2013-11-29 |
Package Last Update: | 2014-02-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:16:22 |
Package Statistics | |
---|---|
Total Downloads: | 36 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel Facade for Facebook PHP SDK
Add aamant\facebook
to composeer.json
"aamant/facebook-connect": "dev-master"
Add Provider to app/config/app.php
'providers' => array(
'Aamant\FacebookConnect\FacebookConnectServiceProvider'
)
And Alias
'aliases' => array(
'Fconnect' => 'Aamant\FacebookConnect\Facades\Fconnect',
)
Run php artisan config:publish aamant/facebook-connect
and modify the config file with your own informations.
Get Login Url with your credentials and scope.
Route::get('facebook', function(){ if (0 === Fconnect::getUser()){ return Redirect::to(Fconnect::getLoginUrl()); } else { return Fconnect::api('/me'); } });