PHP code example of refuel4 / facebook-object

1. Go to this page and download the library: Download refuel4/facebook-object 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/ */

    

refuel4 / facebook-object example snippets


$repository = new \ReFUEL4\FacebookObject\Repositories\UserRepository($session);
$me = $repository->me();
print $me->name;