Search code examples
laravelapigoogle-pluslaravel-socialite

Updates for Laravel Socialite after Google+ API shutdown, replacement?


Since google announced that Google+ API will be shutdown permanently from March 2019, What changes should I do in my website which uses Google + API for login. I disabled Google + API in google developer window, and was expecting that login would work since Socialite would be updated automatically. But it isn't the case. Do we need to update Socialite from our end ?

PS: Getting the below error once Google + API is disabled.

Client error: GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=false resulted in a 403 Forbidden response:\n {"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Access Not Configured. Google+ API (truncated...)\n


Solution

  • Either upgrade to Laravel 5.7+ or follow the instructions mentioned here:

    https://github.com/laravel/socialite/issues/317#issuecomment-451169514

    You can require it with Composer by requiring 3.0.x-dev

    Personally, I plan to upgrade to Laravel 5.8.