Topic-icon [SOLVED] Cache makes Facebook-Joomla Connection impossible

Active Subscriptions:

None
Hello,
I just made a new website with JFBConnect. Everything looks fine except that I can't activate the cache. I read all your tips on the forum but I can't find the correct answer.

Activating the cache plugin or cache in the global settings makes the JFBConnect plugin goes wrong with the usual API Facebook error message after a Facebook Login...

And yes, the cache plugin is at the very last position...

Here's the website (now that it's online, I can show it) www.polymanga.com

Thanks !
The topic has been locked.
Support Specialist
What is the "usual API Facebook error message" that you receive? That will help us narrow down the cause. While the System - Cache plugin can cause some issues, Global Config's cache shouldn't affect JFBConnect at all, so that's very strange.

We'll get you figured out!

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

None
14 years 5 months ago #16670 by Top50
API Error Code: 191
API Error Description: The specified URL is not owned by the application

Once the cache plugin is activated, after 5 minutes (time for the cache to populate the website), it doesn't work anymore...
I just activated the global settings Cache, to check if it works without the plugin activated
The topic has been locked.
Support Specialist
The login button is still working for us right now. However, I am seeing something strange in your page now. If you open the HTML and search for "jfbcBase", you'll see it come up twice. That code is added by our JFBCSystem plugin, and should only be there once. Not sure why that code would be executing twice.

Can you try moving the JFBCSystem plugin to the first ordering and/or the last ordering and see if that changes anything. Most lines that are duplicated aren't a problem, but the jfbcOptionsPermsURL is different in both blocks. While that shouldn't be causing your problem, it could cause other issues.

As for the Cache setting in Global config, did you enable Conservative or Progressive? That will help us diagnose things some more.

Finally, the upcoming 4.1 release has a new system that should cause a lot less issues with caching. It's due out next week, and has been tested pretty extensively with all caching options enabled.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16674 by Top50
To answer your question about duplicates, it might be because of Ignite gallery. Ignite gallery has a facebook implementation on url containing "#" which JFBC doesn't have (if you have any hint on how to implement JFBC like and comment button directly on the ignite gallery for each picture including the #, you're welcomne ! www.polymanga.com/index.php/galerie/polymanga/polymanga-2011/polymanga-2011-visiteurs#47-Visiteurs_2 ).

However, Ignite gallery code for facebook is far from perfect, so I desactivated the Ignite gallery plugin and the component only remains on the gallery where JFBC isn't affected.

As for JFBC, it's integrated 3 times on each page. The login on the top left, the like button on each article and the comment article...
The topic has been locked.
Support Specialist
None of those reasons should be the problem. The code is definitely coming from our JFBCSystem plugin, not from Ignite Gallery at all. Regardless of the amount of integrations, that code should only be on the page once.

Can you let us know what setting you have for the Global Cache setting, progressive or conservative? Also, can you try re-arranging the JFBCSystem plugin to be first and/or last to see if it helps overall with your issue?

Still unsure what's going on, and we didn't see the error you originally mentioned, so maybe what we're tracking down here isn't the problem. Either way, definitely will help how we can.

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

None
14 years 5 months ago #16708 by Top50
Hello,
as you mentioned, the global settings cache setting seems to work but not the plugin.
I set it to conservative. I desactivated the plugin yesterday to avoid major problems after site launch.
So far, when it was problematic, the plugin was set to last. I'll move it first and tell you in 5 min if that changes anything...
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16710 by Top50
So far, the JFBC plugin was set to 1st, I'll check with last...
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16711 by Top50
Okay, I just figured out a few things :
I activated the cache plugin and it seems to work so far !
So the order is essential, here are my tries :

1. If the JFBC plugin is after the cache, JFBC doesn't event display
2. if the JFBC plugin is before the SEF plugin, you've got the error message I gave you
3. If the JFBC plugin is BEFORE the cache and AFTER the SEF, it works !

File Attachment:
The topic has been locked.
Support Specialist
Good sleuthing!

1) Yes, the Cache plugin should -always- be last, not just for JFBConnect. You want the cache to save all the changes from all System plugins, including JFBConnect, or else you're saving a half-rendered page.
2/3) Do you have a 3rd party SEF component installed? I could see how that would make a difference, if not, then I'm confused.

Either way, glad you got it working!
Alex
The topic has been locked.