Google_AuthException: invalid_grant

I try to configure config.php with my values, but I get this fatal error:

Fatal error: Throw exception "Google_AuthException" with the message "Error receiving access token OAuth2, message:" invalid_grant ".

I entered the client id, secret, simple API key, location and sqlite database, as the documentation says: https://developers.google.com/glass/quickstart/php

Any idea what I'm doing wrong?

Thanks in advance!

+5
source share
2 answers

, URL-, Glassware, URI OAuth 2.0 API. .

  • URI OAuth 2.0. OAuth. , php. -, , http://localhost/mirror-quickstart-php/oauth2callback.php. example.com, https://example.com/oauth2callback.php.
  • API . (), , .
  • , , : enter image description here. " ...".
  • , URI OAuth. URI . URI . enter image description here
  • PHP, .

, , URL- config.php.

+2

invalid_grant Google: client ID Google client ID email address . , . , - client ID @developer.gserviceaccount.com

0

All Articles