A simple Sign In example using Facebook Javascript SDK.
- Create a Facebook Developer account on Facebook Developer.
- Create an App on Facebook Developer - Apps Dashboard.
- Use your App's APP_ID on the file js/script.js.
FB.init({
appId: 'APP_ID',
cookie: true,
autoLogAppEvents : true,
xfbml : true,
version : 'v2.12'
});
- Start your server from the root folder. For example:
php -S localhost:80
- Access the web page going to: Localhost.