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.

http://www.smarttutorials.net/login-with-google-oauth-2-using-php-and-mysql/

Demo of this Google OAuth 2 Login using php

http://demo.smarttutorials.net/google_login/

0 comments:

Post a comment