php artisan bundle:install facebook-sdk
Add the following to your application/bundles.php file:
'facebook-sdk' => array('auto' => true),
Add the following to your application/config/facebook.php file:
return array(
'app_id' => '',
'secret' => '',
);
$facebook = IoC::resolve('facebook-sdk');
$uid = $facebook->getUser();