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:

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

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

Create config.php page and add below code after changing database configurations and save.

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


Thanks for giving your valuable time on freewebmentor community and follow on facebook. If you still any question/queries please feel free to comment in below comment section. Do like & share with your friends if you like this post.