You are often told to set a different password for each account, but this is troublesome. A good option is to register and log in to popular websites through social media accounts , your account will be safe and you don’t need to set a unique password for it. If you need the services of a website, but you are skeptical about it, then you can use the “temporary email” service.
· Once done, go to the application URL in browser. You will see the Facebook button for login. Click it and the page will redirect to Facebook login page. Sign into the Facebook account. After successful login, the page will be redirected to the profile page. Add the following code to profile.php to show the retrieved information. For the purpose of this tutorial, I will retrieve user id, Facebook profile picture, name and email.
Estimated Reading Time: 6 mins
· Before you begin to integrate Login with Facebook using PHP, take a look the files structure. facebook_login_php / ├── config.php ├── index.php ├── logout.php ├── User.class.php ├── facebook-php-graph-sdk / ├── images / │ ├── fb-login-btn.png └── css / └── style.css.
Log into Facebook to start sharing and connecting with your friends, family, and people you know.
We can use Facebook login to allow the users to get access into the websites. This page will explain you about login with facebook PHP SDK. Login With Facebook. Need to go https://developers.facebook.com/apps/ and click on add a new group button to make the app ID. Choose Website. Give an app name and click on Create New Facebook App ID