Click here to Skip to main content
15,885,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am stuck at 1 point on how to integrate Facebook using PHP to my application/website. User can login to our site using our site registration and login. But if user wants to get login through facebook then that user should be logged in to our application.

If user is logged in to facebook and goes to my site for the first time then PHP code should save his all details into our database and then allow user to access our site.

If user login from facebook now and goes to our application then he will just get logged in to our site as his details were present in database as we have saved his basic details such as username,firstname,lastname,country,state,city,gender etc details

Is there any way out to get out of this problem.
Posted

Hello Amol,

Please have a look at FaceBook SDK For PHP[^]. You will also need Facebook SDK for Javascript to be able to support login using Facebook Account. Follow the instructions given on this[^] page to complete the authentication.

You can even do this without JSSDK, refer to this[^] link.

Regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900