PHP code example of zejesago / laravel-facebook
1. Go to this page and download the library: Download zejesago/laravel-facebook library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zejesago / laravel-facebook example snippets
$facebook = new Facebook(array(
'app_id' => 'YOUR_APP_ID',
'app_secret' => 'YOUR_APP_SECRET',
));
// Get User ID
$user = $facebook->getUser();
// Get User ID
$user = Z\Facebook::getUser();
<php>
<server name="HTTP_HOST" value="localhost"/>
<server name="REQUEST_URI" value="/"/>
<server name="path" value="localhost"/>
</php>