login-with-facebook-php
create login with facebook in core php
First of all create a new facebook app and get the
APP_ID and APP_SECRET_KEY.Now time to install
facebook sdk directly or by composerBy composer create a file in your directory
composer.json{
"require" : {
"facebook/php-sdk-v4" : "~5.0"
}
}
and run command
composer install and facebook phpsdk will download in your directory.Now create a file
index.php and configure facebook sdk.Generate login url -
Create a call back page/url for handle facebook response
login-call_back.php
And now you can access user's facebook information.
Download source code
View Live Demo
Comments
Post a Comment