Support

Pre-sales

#41197 Akeeba Social Login

Posted in ‘Pre-sales and Account Questions’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by nicholas on Thursday, 17 October 2024 02:25 CDT

quockhang

I have installed the Akeeba Social Login plugin, and I have configured it so that users can log in using their personal Facebook accounts. I have entered the API key and Secret key using my Facebook business account. However, after setting everything up, when I tried to log in with my Facebook account, it didn't work. please help me fix this problem

illustration image: 

https://gyazo.com/990a69a4634184741e177bc3f8f09753
https://gyazo.com/6e20b9c5ba9da803e7018b2f46ebe98a
https://gyazo.com/bdc063cae946f57ca5981798a0ca2d39

 

nicholas
Akeeba Staff
Manager

I can see in the third screenshot that the redirect URI you are using is wrong which is confirmed by the wording in the error message in your second screenshot. Please remember that I have documented what you need to do:

Find the Valid OAuth redirect URIs option. You will need to enter a URL in the form http://www.example.com/index.php?option=com_ajax&group=sociallogin&plugin=facebook&format=raw replacing http://www.example.com with the real URL of your site.

Following the documentation instructions above the correct redirect URI for your site tarotrade.com would be https://tarotrade.com/index.php?option=com_ajax&group=sociallogin&plugin=facebook&format=raw . Please put it in the Valid OAuth Redirect URIs in your Facebook application.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

hi, nicholas
thank you so much.

after I enter https://tarotrade.com/index.php?option=com_ajax&group=sociallogin&plugin=facebook&format=raw into Valid OAuth Redirect URIs in my Facebook application, but in the login form nothing changes

d4779adc92f6510e4615a5f9a13099c4.png
https://gyazo.com/d4779adc92f6510e4615a5f9a13099c4

I searched inside the list of users but couldn't find the user I just registered with Facebook.

nicholas
Akeeba Staff
Manager

I registered myself and saw in https://www.facebook.com/settings/?tab=applications that the application was linked correctly.

I believe that you are using caching in your frontend which means that neither the callback handler will work correctly, nor will you be logged into the site. You won't even see any messages.

If you are doubting whether this works, go to https://www.dionysopoulos.me/ and log in with Facebook. It's the exact same plugin, on my personal blog. You will be logged in right away.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

 

I checked the url https://www.facebook.com/settings/?tab=applications and saw my application. I don't use cache. In the config section, I have this setting. Is it correct?

 

d782d10e8aead2952db1a6eb880ee790.png
https://gyazo.com/d782d10e8aead2952db1a6eb880ee790

nicholas
Akeeba Staff
Manager

This config is correct.

Caching is not just the Joomla! cache.

Have you enabled the System - Page Cache plugin? This tells the browser to cache the page.

Are you using a caching proxy on your server, or a CDN in front of your site? That's also caching.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

hi nicholas,

please, help me fix this problem, because it is really important to me.

thank you so much.

System Task
system
The ticket information has been edited by quockhang (quockhang).

nicholas
Akeeba Staff
Manager

I really don't know what else it could be. The configuration is correct, the plugin does return to the correct return URL which is allowed by Facebook, and the URL is handled by the plugin (that's why we end up with that hash sign in the final URL). I also know that the login code does work on literally every other site this site is running; not just my development, test, and production sites but several other production sites around the world of which I know of at least half a dozen that my wife has made.

Does login in general work on your site? Like logging in with a username and password as a Registered user? Not as a Super User. Try an unprivileged user, the results may differ from when using a Super User account.

Also, if you have enabled Shared Sessions try disabling it.

Moreover, go to Users, Manage, Options, User Options. Check the New User Registration Group. It should be Registered, or another group which is allowed to log into the site.

Finally, please remember that I am helping you for free and we are in different time zones. My time is spent on the business with priority over doing free support. I only do free support as time permits. Thank you for your understanding.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

Users / Manage Options /  User Options:

https://gyazo.com/4851e6311d2d2695b827549fd7683b1b

Have you encountered a situation like this video?

video:

https://gyazo.com/7fec2a3bf94897b89b8b8ad9a3e1cd93

 

Thanks you so much.

nicholas
Akeeba Staff
Manager

The auto-filled username and password in the login form is just your browser's password manager. It's completely unrelated to what we are discussing here, and completely inconsequential too.

I still need answers to the following questions.

Does login in general work on your site? Like logging in with a username and password as a Registered user? Not as a Super User. Try an unprivileged user, the results may differ from when using a Super User account. Tell me if it works or not.

If you have enabled Shared Sessions in Joomla's Global Configuration disable it and try logging in with Facebook again. Please tell me the results you get.

I have tried logging into your site using Facebook. It's an email ending at @yahoo.gr. Do you see that user? Please tell me yes or no.

If you see that user, is the user enabled and authorized? Please tell me.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

I can still log in with username and password.

https://gyazo.com/a832b8eeec4eefe2855a5744402089e8

 

Shared Sessions in Joomla's Global Configuration disable

https://gyazo.com/33fd4bc6712da74b3d8fd072223999c9

 

i see on your website
https://www.dionysopoulos.me/
after login with facebook it becomes like this

https://gyazo.com/64ecfe32e77b1a33791ce3467d728332

Can I configure this on my site?

nicholas
Akeeba Staff
Manager

I have tried logging into your site using Facebook. It's an email ending at @yahoo.gr. Do you see that user? Please tell me yes or no.

If you see that user, is the user enabled and authorized? Please tell me.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager

It looks like the callback code did not actually run. Which is weird, because I do see a redirection to your home page. Let's see if we can get a log.

Go to your site's administrator backend, System, Global Configuration

  • Click on the System tab
  • Debug System -> Yes
  • Click on the Logging tab
  • Log Almost Everything -> Yes
  • Log Priorities -> All
  • Log Categories -> leave empty
  • Log Category Mode -> Exclude
  • Click on Save & Close

Make sure that in your administrator/logs there is no file named sociallogin_facebook.php.

Go to the frontend of your site and try to login with Facebook.

Now look in your adminstrator/logs directory. There is a file named sociallogin_facebook.php.

Download that file, rename it to log.txt (VERY important NOT to use .php as the file extension!), put that in a ZIP file, and attach your ZIP file with your next reply.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

quockhang

I tried following the steps you instructed, but nothing changed. I have attached the log file at the link

https://drive.google.com/file/d/1WUEAvFOdxeWgr-c3s4l-AMxJR2v21g5y/view?usp=drive_link

 

nicholas
Akeeba Staff
Manager

The link tells me that the file is in our trash. It won't let me see or download it.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager

I saw that you changed the link.

Go to the Meta App Dashboard and click App Settings > Advanced in the left side menu. Scroll to the Security section, and unset the Require App Secret toggle.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!