Login with Facebook and Twitter
In this Post We Will Explain About is Login with Facebook and Twitter With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Login With Facebook Twitter and Google using PHPExample
In this post we will show you Best way to implement Login with Facebook and Twitter using PHP, hear for OAuth Login for Facebook Twitter and Google Plus Using PHPwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.
Social Facebook As well as Social Twitter have become large in the social network world As well as both networks get offering oAuth some support. We developed a most useful system to login with social Twitter As well as Facebook. Generally web users not any time wasting interested to filling the big any type of the registration forms. This simple script helps We to help to registration forms, This is very useful As well as simple to integrate.
Database
Sample sql code database users table columns like as id, email, oauth_uid, as well as provider_auth and simple social username.
CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, email VARCHAR(70), oauth_uid VARCHAR(200), provider_auth VARCHAR(200), username VARCHAR(100), twitter_oauth_token VARCHAR(200), twitter_oauth_token_secret VARCHAR(200) );
The tutorial contains three folders called facebook,twitter and config with PHP files.
facebook //Simple PUT OF THE Facebook OAUTH library twitter //Simple PUT OF THE Twitter OAUTH library config -- functions.php -- connection.php //config of the Database connection -- facebook_config.php //config of the Facebook API connection -- tweeter_config.php //config of the Twitter API connection index.php home.php do_twitter_login.php do_login-facebook.php do_get_twdata.php
Facebook Setup
We have to create a application. as well as Facebook will simple provide We app id data and app secret key or d id, just modify following source code
facebook_config.php
Twitter Setup
Create a simple twitter web application click here. as well as Some like Facebook Twitter social provide We consumer simple key amd consumer as well as secret key using simple these modify following source code.
(adsbygoogle = window.adsbygoogle || []).push({});
tweeter_config.php
connection.php
Database setting configuration file.
do_twitter_login.php
In main root directory find out simple the below line at do_twitter_login.php source code and replace live24u.
$request_token = $twitteroauth->getRequestToken('https://www.pakainfo.com/do_get_twdata.php');
index.php
If We want to modify We are web project existing simple login or main index pages, just use following source code.
//simple HTML source Code Click ->Twitter_Login Click ->Facebook_Login
I hope you have Got What is php – Best Practice Login With Facebook, Twitter, Google And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.