Topic-icon Issue JFBConnect and Gtranslate

Active Subscriptions:

None
4 years 3 months ago #66013 by fb_1627387670
Hi,

I have noticed that JFBconnect Facebook login only does not work when GTRANSLATE is in use, however, other social media login are working well.

For exemple when on www.exemple/it/ I login with Facebook but after the login redirect I'm not logged in.

I'm on a dedicated server with DEBIAN v8.11 Linux and Plesk Onyx v17.8.1, PHP 7.3.13 with Curl enabled and with Nginx
The topic has been locked.
Support Specialist
4 years 2 months ago #66030 by alzander
I was able to recreate the problem on your site but am unsure what's causing it. Can you set the "Debug Mode" option to 'On' in the JFBConnect -> Configuration area? I'm hoping that will display an error message on the site when the redirect happens that will help investigate.

Beyond that, the only other information I have now is that GTranslate seems to be overriding the 'Base URL' of your site from example.com to example.com/it That normally should be fine, but it seems that for some reason the login process isn't working at that URL. I don't have any good reasons as to why at this point, but putting that detail here so I remember.

Please let us know if you see any error messages when trying to login with Debug Mode enabled.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 2 months ago #66033 by fb_1627387670
Hi Alex,

Thank you very much for your reply,

I have enabled Debug Mode and checked the jfbconnect.log after a few unsuccessful login with "exemple.com/it/" but the log file was still empty.

Any more suggestions ?

Thanks
The topic has been locked.
Support Specialist
4 years 2 months ago #66039 by alzander
Can you go into the Facebook Developer area and edit your app. Go to the Facebook Login -> Settings area. Then, find the "Valid OAuth Redirect URIs" section. In there, you'll need to add the authentication URLs with /it/. I'm assuming you already have the ones without /it/ in there. When done, you should have all variations of your URLs like:
https://www.site.com/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
https://www.site.com/it/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
If you have other language URLs or your site can be visited over non-www or http (not https), make sure you have those as well.

Hopefully, that will get you going!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 2 months ago #66041 by fb_1627387670
Hi Alex,

Thank for your reply, unfortunately adding those URL didn't change the problem, I have also noticed it's endless try login login in a loop mode.

Any more ideas ?

Thanks
The topic has been locked.
Support Specialist
4 years 2 months ago #66051 by alzander
Can you send me a picture of your settings from the Facebook Developer area? You can send me a Private Message with those details by clicking the mail icon under my name to the left.

There is likely a code change we can provide to you that would make things work, but that would be something you'd have to apply with every update to JFBConnect, so not really a great solution for the long term. I'd really like to understand what's going wrong and fix the actual cause first.

Thanks,
Alex
The topic has been locked.
Support Specialist
4 years 2 months ago #66053 by alzander
Thanks for sending the images. The "Valid OAuth Redirect URI's" setting does not have your URL with /it/ in it. Can you add more URLs, like described in the post above. You should have, at least:
https://www.site.com/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
https://www.site.com/it/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook

I hope that's all it is,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 2 months ago #66054 by fb_1627387670
Hi,
As I said before I did that change in Facebook Dev and it didn't work so I have switched back to the normal URL.

Thank you

Here the screenshot, when I login wit italian language it infinite loop and never login
File Attachment:
The topic has been locked.
Support Specialist
4 years 2 months ago #66055 by alzander
I understand what the redirect looks like :)

The "Valid OAuth Redirect URI's" field can take multiple URLs. You shouldn't have to set just one. Please set them both in the app settings. It then may take Facebook an hour or more to fully recognize the setting in all of it's servers, so be patient. That URL must be set there without /it/ and with it (and any other language strings you may use).

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 2 months ago - 4 years 2 months ago #66056 by fb_1627387670
Thanks Alex,

I also understood I can put more than one URL and I did it that way. What is new here is that I didn't think of propagation times, so let's wait and see :)

File Attachment:
Last edit: 4 years 2 months ago by fb_1627387670.
The topic has been locked.