Topic-icon Unable to Login/Logout from some pages

Active Subscriptions:

None
When I try to log in from my homepage or some other pages everything is OK, but there are some pages where Login opens popup with
"Log in to use your Facebook account with Demo" instead of Facebook App name and then I get the following message:
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

On that pages Logout is also not working.


Regards,
Pedja
The topic has been locked.
Support Specialist
12 years 8 months ago #36981 by alzander
Pedja,
Can you post (or private message) URLs for a page that works and one that doesn't? Between the two, we should be able to help get to the bottom of what's happening pretty quickly.

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

None
The topic has been locked.
Support Specialist
12 years 8 months ago #36996 by alzander
Pedja,
The reason that page is failing is because something else is re-including the Facebook Javascript library on that page and initializing it with a different AppId that won't work for Facebook login. The specific line in the HTML is:
<script src="//connect.facebook.net/en_US/all.js#xfbml=1&appId=354400064582736" type="text/javascript"></script>
You'll need to find what extension (component, module, plugin) is including that line in the code and disable it. That should make things work properly.

I hope that helps you narrow things down.

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

None
12 years 8 months ago #37014 by bottleCONTENT
I removed that line and Login works, but Logout still doesn't work. The error is
Uncaught TypeError: Object #<Object> has no method 'apply'

Pedja
The topic has been locked.
Support Specialist
12 years 8 months ago #37029 by alzander
I just tried to login with Facebook, but was unable to. The Login/Register page had fields that were a little out of whack and I couldn't tell what was happening. Does it look correct to you when you register? When I clicked the Register button, I was brought to a blank white page.

If you are seeing the same blank page, please set Error Reporting to 'Maximum' in the Global Configuration of Joomla, that should show a real error message on that page.

Let me know if that helps get you going, and we'll gladly help investigate further.

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

None
12 years 8 months ago #37057 by bottleCONTENT
Registration is now set to automatic and you should be able to log in with your Facebook account.

Pedja
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago - 12 years 8 months ago #37232 by bottleCONTENT
Any news about Logout Alex?
I set Error Reporting to Maximum, but there is no php error.
Last edit: 12 years 8 months ago by bottleCONTENT.
The topic has been locked.
Support Specialist
12 years 8 months ago #37258 by alzander
Sorry for the delay. The problem looks to be due to your multiple jQuery inclusions on that page, including a very old v1.6.4 at the bottom of the page in this block:
<br></div></form><!-- END: Modules Anywhere --><!-- START: Modules Anywhere -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script>
$(function () {
$("#btnAddToFavourites").click( function () {
$.ajax({
The jQuery libraries are being loaded about 4 different times, including that last one. I'd recommend removing as many inclusions, especially the 1.6.4 version, as you can as you really should only need to load jQuery once. The newest version on your page looks to be jQuery 1.8.3 and that should be backward compatible with all the other versions.

Finally, one last change you can make that should also fix the issue is simply change the "Logout of Joomla only" setting to 'Yes'. That will bypass the functionality that's preventing the logout but will only log the user out of Joomla and not Facebook.com

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #37293 by bottleCONTENT
It works!!!
Thanks Alex.
The topic has been locked.