社交名单套餐此页面无效

时间:2018-03-28 07:22:00

标签: php facebook laravel-5 laravel-socialite

我已根据Laravel Socialite文档https://laravel.com/docs/5.4/socialite

在我的项目中应用了socialite包

当我尝试登录/注册用户时会出现问题,它会抛出此特定错误enter image description here

我已经在Facebook面板上和我这边检查了我的网址。 代码如下: -

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

控制器

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


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

Services.php文件

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

0 个答案:

没有答案