使用带有facebook的Socialite的OAuthException - "message":"必须使用活动访问令牌来查询有关当前用户的信息.",

vc_*_*ace 12 oauth-2.0 laravel laravel-socialite

我一直在使用社交网站几天与Facebook没有问题.今天,我开始收到此错误.

{ "error": 
    { 
       "message": "An active access token must be used to query information 
        about the current user.", "type": "OAuthException",
        "code": 2500, "fbtrace_id": "FTvIz9t1LT+"
   }
}
Run Code Online (Sandbox Code Playgroud)

错误似乎很简单,但我似乎无法在线看到解决方案.有没有办法使用Socialite重置我的access_token.

请注意:我几乎都遵循本教程

当我尝试获取时,错误在回调中

$userProvider try { 
    $userProvider = Socialite::driver('facebook')->user();
} catch (Exception $e) {
   Log::info('Callback Error ' . $e->getMessage());
   return Redirect::to('redirect');
}
Run Code Online (Sandbox Code Playgroud)

谢谢,Rich

Tad*_*Rod 30

这也发生在我身上.我把它修好了composer update然后运行composer dump-autoload.这会将Socialite更新为v2.0.21

干杯