我试图将google登录添加到我的laravel项目中。但它给客户端错误。以下是我得到的错误。我也成功安装了社交名媛。
Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false` resulted in a `403 Forbidden` response: {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Project 983930379932 is not found (truncated...)
转到https://console.cloud.google.com/apis并启用Google+ API。
我花了3个小时才发现,当您创建OAuth服务时,Google Cloud不会自动为您启用API。
请记住,您还必须在googles服务中注册您的Google应用。如果我没记错的话,那个错误只是告诉你不允许你使用谷歌服务。
我不确定这些步骤是否是最新的,但它不应该是那么不同:https://itsolutionstuff.com/post/laravel-5-google-oauth-authentication-using-socialite-packageexample.html
首先从此处打开您的Google控制台帐户:console.developers.google.com
选择您的项目。在此之后,您必须单击谷歌+ API详细信息页面。现在我们可以启用API。