Hello All.
In the previous post, we have explained the Login with Google..
This post have Complete Code for Login / Sign In with Facebook Account for PHP Code
As you all know, FB is as popular as Google, so Login With Facebook is also a very important par of a website,
Below is the detailed explanation for complete procedure starting from creating a Facebook app to getting the complete details of user logged in .
Download Source Code
Live Demo
Starting is with create an APP for your site .
Note : You should log in to your Facebook account before moving ahead.
Go To https://developers.facebook.com/
Create an APP using the menu APP appearing on developers toolbar on this page
The Following popup appears
Fill in the details and CREATE APP
After this the APP dashboard appears .
The dashboard has the App Id
Though the app id is the only required field for login , in backend the process the URLs ie the domain url assigned to APP and that of the Facebook login invoking page .
So next step is to add the domain or Platform to the App. So move to the Settings Tab .
Theres the ADD PLATFORM . Click on it and the following popup appears . Click on website and add the url .
After being done with this , the following page is shown
We are done with the App Creation and hopefully you have noted down the App Id .
Now the second phase , The Facebook Login using javascript .
Create a page and add the following code to it , replacing the appId variable .
The output for this page is follows
The above is the data received from the facebook after the user is successfully Logged In .
The data can be used to register any user or display their information on our website .
Thats all .
Other Related Posts
Login With Google Using php
http://learnandsharetoall.blogspot.in/2015/09/what-is-natural-language-processing.html
You can also check our Microservices post
Introduction to Microservices
In the previous post, we have explained the Login with Google..
This post have Complete Code for Login / Sign In with Facebook Account for PHP Code
As you all know, FB is as popular as Google, so Login With Facebook is also a very important par of a website,
Below is the detailed explanation for complete procedure starting from creating a Facebook app to getting the complete details of user logged in .
Download Source Code
Live Demo
Starting is with create an APP for your site .
Note : You should log in to your Facebook account before moving ahead.
Go To https://developers.facebook.com/
Create an APP using the menu APP appearing on developers toolbar on this page
Fill in the details and CREATE APP
After this the APP dashboard appears .
The dashboard has the App Id
Though the app id is the only required field for login , in backend the process the URLs ie the domain url assigned to APP and that of the Facebook login invoking page .
So next step is to add the domain or Platform to the App. So move to the Settings Tab .
Theres the ADD PLATFORM . Click on it and the following popup appears . Click on website and add the url .
After being done with this , the following page is shown
We are done with the App Creation and hopefully you have noted down the App Id .
Now the second phase , The Facebook Login using javascript .
Create a page and add the following code to it , replacing the appId variable .
The output for this page is follows
The above is the data received from the facebook after the user is successfully Logged In .
The data can be used to register any user or display their information on our website .
Thats all .
Other Related Posts
Login With Google Using php
http://learnandsharetoall.blogspot.in/2015/09/what-is-natural-language-processing.html
You can also check our Microservices post
Introduction to Microservices
Comments
Post a Comment