DEV Community

Rohit Urane
Rohit Urane

Posted on

3 3

Implement Facebook login in laravel

Image description

Today we are going to implement social login in laravel with the Facebook platform. Facebook is the most popular social media platform. In this implementation, we are using the socialite package mostly used to connect social media to the laravel application.

Step by step guide on Facebook login in the laravel application

  • Install Package in laravel

Run the following command to install the socialite package in your application.

composer require laravel/socialite
Enter fullscreen mode Exit fullscreen mode

You need to add the below line of code inside the config/app.php file.

$providers= [

    ......
    Laravel\Socialite\SocialiteServiceProvider::class,
    ......
]; 

$alias = [

    ......
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
    ......
]
Enter fullscreen mode Exit fullscreen mode

Read More

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series