Oauth Facebook和Google上的Laravel 5社交名流错误

Oauth Facebook和Google上的Laravel 5社交名流错误,oauth,laravel-5,Oauth,Laravel 5,我的代码 然后得到 还有谷歌 我看起来和以前一样 Client error response [url] https://accounts.google.com/o/oauth2/token [status code] 400 [reason phrase] Bad Request 但这是工作 感谢澄清,我也有同样的问题,那是因为社交名流的版本。我降级到2.0.0,问题就消失了 问题是您的servicesconfig/services.php。检查您的facebook客户端id和客户端机密

我的代码

然后得到

还有谷歌

我看起来和以前一样

Client error response [url] https://accounts.google.com/o/oauth2/token [status code] 400 [reason phrase] Bad Request
但这是工作


感谢澄清,我也有同样的问题,那是因为社交名流的版本。我降级到2.0.0,问题就消失了

问题是您的servicesconfig/services.php。检查您的facebook客户端id和客户端机密,如果它与您的facebook开发者页面中的一致

若你们试图在开发阶段用另一个facebook帐户登录来测试你们的应用程序,它会抛出同样的错误

享受……。

对于FB部件,代码参数不应为空。在浏览器中调用这些URL将显示更详细的错误消息。
Client error response [url] https://graph.facebook.com/oauth/access_token?client_id=1562205014036534&client_secret=3b9807e0d826bfd66fb3fbdc627fd015&code&redirect_uri=http%3A%2F%2Ffacebooktest.dev [status code] 400 [reason phrase] Bad Request
       $user = Socialize::with('google')->user();
Client error response [url] https://accounts.google.com/o/oauth2/token [status code] 400 [reason phrase] Bad Request