0
jaggy posted
google plus Oauth 2.0 give error at callback url in php
using google plus login . and it working good until it return at call back with ?code=4/yTOGmqs-utkNDXPViyxYAthHjppYiSreHand i got error at callback
America/Denver] PHP Fatal error: Uncaught exception 'Google_AuthException' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'' in google/auth/Google_OAuth2.php:113
Stack trace:
#0 /google/Google_Client.php(131): Google_OAuth2->authenticate(Array, NULL)
if (isset($_GET['code'])) {
$client->authenticate($_GET['code']);
$_SESSION['access_token'] = $client->getAccessToken();
header('Location: http://' . $_config['returnUrl']);
}