Fatal error: Uncaught exception 'Google_AuthException' with message 'Error fetching OAuth2 access token, message: 'invalid_client''

Leave a Comment
It's because your Oauth client secret doesn't match with Client secret you created. So please recheck your client your are provided in your script.

It may be space added at start or end, please remove those spaces. it will work.

Please refer following tutorial on sign in with google php. It has step by step instructions on how to integrate Google Oauth 2 login using php.


Demo of this Google OAuth 2 Login using php



Post a Comment