Tuesday, August 27, 2013

Login with Facebook using OAuth handled by the PHP SDK

0

Facebook is a social network site which also allow oAuth support.

This tutorials will focus on Login with facebook account in site using OAuth 2.0 handled by the PHP SDK.

Following are step by step guide so that you can integrate it into your own site easily and save information when user login using facebook account.


Create Facebook Application:


First of all you have to create the application. Facebook will provide you app id and app secret id which will be used in "facebook_login.php" page.

Database configuration file.


Open db.php file and add the required Database information.

$conn=mysql_connect("localhost","user name","password");
mysql_select_db('database name',$conn);

For more better understanding please download the working script or view the demo online.

View Demo Download


No comments :

Post a Comment