4 months ago

Laravel socalite - handleProviderCallback is never triggered

Posted 4 months ago by vk011

I am trying to log a user in via Facebook and then use that user data to fill out the name and email in a comment form.

I am using Laravel / Socialite.

So in my LoginController I have this:

public function redirectToProvider()
        return Socialite::driver('facebook')->redirect();

public function handleProviderCallback(Request $request)
    $user = Socialite::driver('facebook')->user(); 

    $request->session()->put('user', $user);

By using breakpoints in both methods I came to the conclusion that the handleProviderCallback method is actually never triggered for some reason.

Please sign in or create an account to participate in this conversation.