I want to make login with facebook using Socialite in laravel. First I set the route function:
Route::group(['middleware' => ['web']], function(){
Route::get('auth/facebook', [
'as' => 'auth-facebook',
'uses' => 'usersController@redirectToProvider'
]);
Route::get('auth/facebook/callback', [
'as' => 'facebook-callback',
'uses' => 'usersController@handleProviderCallBack'
]);
});
And then I make function in the user controller:
public function redirectToProvider(){
return Socialite::driver('facebook')->redirect();
}
But I'm getting the error The redirect_uri URL must be absolute
Any ideas?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire