PHP Learning : Login with Facebook using PHP - Publik Talk

Breaking

An informative website for every one.

Post Top Ad

Post Top Ad

Friday, August 11, 2017

PHP Learning : Login with Facebook using PHP


Login With Facebook

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.

  • 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
  • Click on Create App ID

Facebook API Configuration (fbConfig.php)


Login & Profile Information (index.php)


Logout ( logout.php)

When the user wishes to logout from their account, the logout.php file will be loaded after logout from Facebook account.

Below code is used to logout facebook.




No comments:

Post a Comment

Post Top Ad