Login with Facebook makes easy to connect with users or peoples using facebook applications for your website. The Facebook SDK for Javascript provides a simple path to integrating users to login with your websites.

It’s provides these common scenarios:

  • Your application uses Facebook Login to authorize users.
  • It’s also provides two login options: Facebook Login and your own website custom login.

Create Database Table
Sample users table columns id, email, and username.

Facebook Application Setup
Go to the https://developers.facebook.com/apps and create app id and app secret id, just modify in the following code

For the database configuration edit config.php

Integrate with your index.php page
If you want to change in your web application index page, just use following code.

Download the complete code from here


Any queries please comment bellow.