Topic-icon Facebook Javascript library inclusion

Active Subscriptions:

None
13 years 1 month ago #32816 by mfazalb
Hi Alex, did what you suggested and disabled some plugins as well. But nothing seems to work. It works alright on mobile with the joomlamobile template. Need to find what is causing it not to load with the Rocket theme template for desktop. This only happened after we upgraded to 5.0. Is there anyway we could go back to the earlier version of JFBConnect and check if it is ok with that version.
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32823 by mfazalb
Hi Alex,

Just uninstalled JFBConnect 5.0 and reinstalled 4.2.5 and everything works fine! You can check on our production site now with the same credentials I gave. So it has something to do with your version 5.0. If you can please have a look by upgrading to 5.0 on the site. Need to decide soon whether to go back to version 4.2.5 on our live site as well.

regards
The topic has been locked.
Support Specialist
13 years 1 month ago #32832 by alzander
I'm at a loss. I'm not sure what's causing the difference. I installed JFBConnect v4.3.4 (the last of the v4 series), and the buttons showed. When moving to v5.0, they no longer show.
The topic has been locked.
Support Specialist
13 years 1 month ago #32833 by alzander
Sorry, my message got cut off:
Here's what I can tell you:
* The buttons show with the standard RT Gantry template
* It doesn't seem to be a system or content plugin interfering
* Something is specifically removing our buttons from the page. If you open the HTML, you'll see a div with a class of "scsocialbuttons". Inside that div is where our social buttons should be.
* Additionally, if you disable the JFBCSystem plugin, you'll then see all of our tags ({JFBCLike xxx}) showing up on the page. Those tags are replaced with the social buttons.

So, something in the specific template you're using is removing the buttons we're inserting, and I don't know how or why.
The topic has been locked.
Support Specialist
13 years 1 month ago #32834 by alzander
Oh, and additionally, the difference between v4 and v5 is that we switched the HTML that we insert into the page to use Facebook's newer (and recommended) system.

The v4.x tags looked like:
<fb:like> </fb:like>
The new v5.x tags are more HTML compliant and faster. They look like:
<div class="like"></div>

At this point, the only things I can suggest are:
* Using v4.3 of JFBConnect. I wouldn't recommend v4.2 due to how old it is.
* Contact RocketTheme to see if they have any ideas why that specific template would be removing those tags.

You may also want to try adding a JFBCLike module on the page and see if that gets stripped. Just out of curiousity as it may help narrow things down.

Hope that helps, though there's no great solutions in there.

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

None
13 years 1 month ago #32850 by mfazalb
Hi Alex,

I am not sure what Rocket theme could do since it was working alright all along with 4.2 and 4.3! Tried placing the modules as well and it does seem to work as well.

Could you please let us know where to download the 4.3 version, so that we could downgrade JFBConnect on the live site while this is resolved.

Still need your help to find out why we cannot use 5.0 since we would like to use the new FB recommended tags asap.

regards
The topic has been locked.
Support Specialist
13 years 1 month ago #32864 by alzander
Mfazalb,
Strangely enough, in v4.2 and 4.3, if you enabled the RokBooster plugin, you would have run into the same issue. At that point RocketTheme's 'optimization' plugin was replacing any instances of:
<fb:like> </fb:like>
with
<like> </like>
In other words, they were removing the fb: from the statement, which was required. You can see the note about it in our v5.0 changelog "Enh: Compatibility improvements with RokBooster by RocketTheme

The change we made was to move to the newer methods that Facebook recommends for implementing the widgets, which is to use the following tag:
<div class="like"> </div>
So, I don't know why that specific RocketTheme template is stripping out the code between the scsocialbuttons tags (which you can see on the page). It's not happening with other RocketTheme templates and it's not being caused from a system or content plugin. The only remaining 'unknown' is the specific template that you're using. And again, we've seen RocketTheme extensions modify our code in the past.

I don't have an answer for you, and I'm not sure I'm going to be able to get you one. I'd highly recommend contacting RocketTheme and ask them if they have a clue as to what may be happening. I don't know their template architecture or know all that goes on in them, so it would be difficult for me to diagnose.

The only suggestion I have would be to use v4.3 until we have an answer from RocketTheme. If you want, I can send you JFBConnect v4.3 through Private Message and you can use that.

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

None
13 years 1 month ago #32870 by mfazalb
Hi Alex,

RT template we use is Voxel. We will try to raise the issue with RT, although I doubt that the answer can be found there.

Yes, in the meantime please send me the v4.3 so that we could use that on our live site.

best regards
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #32871 by mfazalb
Hi Alex,

Just one more observation. In our SobiPro section we use another plugin for the FB like etc and it works. You can see it on this page at the bottom.
goo.gl/0jeAv

However, in this same SobiPro template we have also included JFBConnects FB Comments, but that does not show up.

regards
The topic has been locked.
Support Specialist
13 years 1 month ago #32892 by alzander
I'm not seeing where the JFBCComments should be appearing on that page. The 'div' that should contain our comment box isn't appearing at all. Are you sure it's configured properly to show there? I'd love to see it showing, or not showing (with the same behavior on the content pages) as that would help narrow things down a bit.

For the other FB Like plugin you're using, can that be configured to show within content articles?
Can you configure a JFBCLike module to show on all of your pages, content and SobiPro, so we can see if it works on the Sobi pages?

We'd love to get to the bottom of this as much as you, but there isn't anything in our code that I can imagine that would be displaying the behavior we're seeing. There must be some other extension/template conflicting and we just need to narrow down why and why. The 2 tests above could be very helpful since, if the other extension does work on content it says there may be something wrong with JFBConnect. Whereas if our extension works on Sobi pages (or on content pages, but not 'within' the article), that would point to something RocketTheme is doing to filter out social stuff inside the content area.

Even our login button *was* upgraded to use the new syntax, and that's working site-wide. So that's making me think it's something specific to social widgets within content.

Keep me posted,
Alex
The topic has been locked.