ok.. i noticed that i’ll get this error if i have multiple google IDs registered & remembered and clicked one of the IDs to login..
but when I’m using incognito mode, with only 1 google ID, it works..
Hi,
I’m facing the same problem as above mention Google Authentication failed,ie After clicking allow on the google authentication page, I’m getting the following error:
Oops! We ran into an issue.
Authentication failed. Either you have cancelled the authentication or Google refused the connection.
Authentication failed! Google returned an invalid code 4/xDid_D2DefHLkUldAp6CCbJNzS4FoBMHRdoMzn-Nov8
400. { “error” : “invalid_request” }
The plugin which im using is https://wordpress.org/plugins/wordpress-social-login/
so could anyone please help me out to resolve this issue.
Same problem! Just started too, was working fine last week.
-
This reply was modified 8 years, 11 months ago by
lelio98. Reason: Select follow-up
Any idea if a solution has been found? I’m having the exact same issue.
hi
i have same problem too
Solved. Disable line
curl_setopt($ch, CURLOPT_USERAGENT, $this->curl_useragent );
in file wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php
-
This reply was modified 8 years, 11 months ago by
sachedar.
Thanks a lot
My Problem Solved!
You Are Great
Hi! Thanks for your answer, it overcomes the problem!
Can you explain why it happens? What’s the problem with that User-Agent? It doesn’t make any sense to me…why is it an “invalid request”?
Thanks again 😉
I have tried many plugins for eg. social login, social login lite, Yith social login, social connect wont work for me. please help why I am unable to login via google ac
I ended up forking wordpress-social-login repo and fixing that user-agent problem. I think the only change i’ve made was the user agent string.
I don’t know how u couldnpt get it to work, its very easy:
– enable Google+ API integration @ google developers apis
– create the API credentials @ google developers credentials
-configure it +/- like this

– install the plugin (and maybe do what @sachedar said)
– activate it
– put your credentials in the plugin configuration
Be free to ask for help if u need
cheers