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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay