Facebook Login with Laraval using Socialite package.
-
make sure you already have xampp or wamp installed if you are on windows machine, mamp for mac , and lamp for linux.
-
clone this repository to your local machine or just download the zip.
-
install Composer first, then run this command in your command-line (you should be inside your project directory).
composer install
-
rename .env.example to .env and add your database and facebook 0Auth credentials.
-
generate application key.
php artisan key:generate
- create database tables.
php artisan migrate
- Facebook login does not work unless we are using HTTPS. You can read complete tutorial on medium where I create this login app as well as HTTPS Virtual host with xampp for Ubuntu/Windows.