Laravel Socialite Configuration

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

In your config\services.php you can add the following code

'facebook' => [
    'client_id' => 'your-facebook-app-id',
    'client_secret' => 'your-facebook-app-secret',
    'redirect' => 'http://your-callback-url',
],

You'll also need to add the Provider to your config\app.php

Look for 'providers' => [] array and, at the end of it, add the following

'providers' => [
      ...
  
      Laravel\Socialite\SocialiteServiceProvider::class,
]

A Facade is also provided with the package. If you would like to make usage of it make sure that the aliases array (also in your config\app.php) has the following code

'aliases' => [
    ....
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
]


Got any Laravel Question?