A simple Sign In example using Facebook PHP Graph SDK.
- Create a Facebook Developer account on Facebook Developer.
- Create an App on Facebook Developer - Apps Dashboard.
- Use your App's APP_ID and APP_SECRET on the file app/init.php.
$fb = new \Facebook\Facebook([
'app_id' => 'APP_ID',
'app_secret' => 'APP_SECRET',
'default_graph_version' => 'v2.10',
]);
- Start your server from the root folder. For example:
php -S localhost:80
- Access the web page going to: Localhost.