Topic-icon Google login not working

Active Subscriptions:

None
11 years 2 months ago #52035 by taurus
Hello,

We used JFBConnect on site replicareviews.com/ in which Facebook and twitter login is working fine but google login is not working. When we click on google login button it redirects to google authentication page. See attached screen shot. From after we click on accept button it redirect back to our site but we are not logged in to that.

Please review and let us know what is the issue. Please reply asap.

Thanks.
The topic has been locked.
Support Specialist
11 years 2 months ago #52038 by mel
Replied by mel on topic Google login not working
Generally, this happens because the application is not set up correctly in Google. The following two settings are the most common culprit. Could you tell me the values in your app for:
1) The 'Redirect URI' setting
2) Whether 'Google+ API' setting is checked under APIs & Auth.

Also, please turn on Debugging mode in JFBConnect > Configuration > General tab and set Error Reporting to something high like Maximum in the Joomla Configuration area. This can show any errors that may be occurring that aren't apparent right now.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52101 by taurus
Replied by taurus on topic Google login not working
Hello,

We check the debug mode on and also error reporting to maximum and got error while login via google:- Error code 400 received requesting access token: { "error" : "invalid_grant" }. Please check attached screen shot to see the error.

Also in App setting 'Google+ API' is on and redirect URIS are below:
replicareviews.com/index.php?option=com_...back&provider=google
replicareviews.com/index.php?option=com_...back&provider=google

Also attached the App setting screen shots.

Thanks.
The topic has been locked.
Support Specialist
11 years 2 months ago #52105 by mel
Replied by mel on topic Google login not working
It looks like some extension on your site is changing the redirect_uri value coming back from Google.
http://replicareviews.com/index.php?option=com_jfbconnect&task=authenticate.callback&provider=google&state=25230e5c62b0c8b36517a6e496cf2788&code=4/t41SR_wSq5ywgB7eB_MtEtyr4SyVsHBuNKYECEmSAxA.goTPyJL5mFIT3oEBd8DOtNDnqo2NmAI
to
http://replicareviews.com/component/com_jfbconnect/code,4/t41SR_wSq5ywgB7eB_MtEtyr4SyVsHBuNKYECEmSAxA.goTPyJL5mFIT3oEBd8DOtNDnqo2NmAI/provider,google/state,25230e5c62b0c8b36517a6e496cf2788/task,authenticate.callback/

Generally this is an SEF extension and most have settings where you can disable URL redirection for given components. Please exclude JFBConnect URLs and re-try.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52113 by taurus
Replied by taurus on topic Google login not working
Thank you so much. Changing to SH404 extension setting solved my issue. :)
The topic has been locked.
Support Specialist
11 years 2 months ago #52117 by mel
Replied by mel on topic Google login not working
Great, glad that worked. Let us know if you run into any other issues.

-Melissa
The topic has been locked.