AdrianCabrera / Facebook-PHP-SDK-SignIn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook PHP Graph SDK Examples

A simple Sign In example using Facebook PHP Graph SDK.

Steps

  1. Create a Facebook Developer account on Facebook Developer.
  2. Create an App on Facebook Developer - Apps Dashboard.
  3. 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',
]);
  1. Start your server from the root folder. For example:
php -S localhost:80
  1. Access the web page going to: Localhost.

About


Languages

Language:PHP 100.0%