mercredi 28 mars 2018

Socialite Package This page isn't working

I have applied socialite package in my project following the Laravel Socialite Documentation https://laravel.com/docs/5.4/socialite

The problem arises when I try to login/register a user it throws this particular error enter image description here

I have already checked my URL's on facebook panel as well as on my side. The code is as follows:-

Route::get('customer/{provider}', ['as' => 'customer.social-login', 'uses' => 'CustomerController@redirectToProvider']);
Route::get('customer/{provider}/callback', ['uses' => 'CustomerController@handleProviderCallback']);

Controller

public function redirectToProvider($provider)
{
    return Socialite::driver($provider)
        ->redirect();
}


public function handleProviderCallback($provider)
{
    dd($provider);//Not reaching here
}

Services.php file

'facebook' => [
    'client_id' => 'xxxxxx',
    'client_secret' => 'xxxxxx',
    'redirect' => 'http://localhost:8000/customer/facebook/callback',
],



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2IbXhhB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire