Skip to main content

Posts

How to implement Facebook Login in Laravel

In this tutorial, we’re going to explain how to integrate Facebook login in Laravel based application using Socialite. The Socialite is Laravel’s official package, which is making is easy to authenticate with external services with OAuth providers. Create Project Create a brand new Laravel 5.6 project with Composer create-project command: $ composer create - project laravel / laravel factsdeveloper - facebook - login 5.6 -- prefer - dist Database connection settings After creating project open .env file and update your database credentials: . . . DB_CONNECTION = mysql DB_HOST = 127.0.0.1 DB_PORT = 3306 DB_DATABASE = factsdeveloper DB_USERNAME = root DB_PASSWORD = mysql . . . Next step, would be, go to the project root and open the terminal and type the following command. It will create the two tables, which is by default ships by Laravel 5.6 $ php artisan migrate Migration table created successfully . ...