Topic-icon existing functionalities on portal broken after installing JFBConnect

Active Subscriptions:

None
11 years 9 months ago - 11 years 8 months ago #47051 by leo1079
I managed to get the login using facebook & g+ working fine.
However, ever since I had JFBConnect installed & configured, some of the functionality/features that existed on my portal ceased to work any more.

1) Emm... In my adverts section, (this is a classifieds website) the vendors could previously post their youtube videos.
Basically there is a text box field in the form where they just provide the youtube link & it works straight off the box.
Now this has stopped working & I see a blank space where the video was supposed to be displayed.

2) Also in the adverts, users could do facebook comments. This is not functional any longer :(

3) I had enabled facebook like & follow buttons using below code in the dj-classified cpanel
<div class="fb-like" data-href="myfbpage" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div>
<div class="fb-follow" data-href="myfbpage" data-colorscheme="light" data-layout="standard" data-show-faces="false"></div>

After installing JFBC, these like/follow buttons have disappeared.

I believe the settings are fine as it used to be working previously & nothing has changed.
So bit disappointed that some of my useful features are no longer working :(

Can you help resolve this please..

Thanks
Davis
Last edit: 11 years 8 months ago by leo1079.
The topic has been locked.
Support Specialist
1) I'm unsure what's happening here. Can you try disabling the JFBCSystem plugin, temporarily, to see if the videos properly appear? The JFBCSystem plugin enables all of our functionality, and is a good way to test if JFBConnect is the cause of a problem or not.

2/3) Please go into the JFBConnect -> Configuration area and enable the "Always Parse Tags" setting. That may help the problem. In general, if you have other Facebook features on the site, you should be able to leave them intact but you should *not* be re-including the Facebook Javascript library on the page. JFBConnect adds the Facebook Javascript library and initializes it in a specific manner to enable all of our features. If you have other inclusions of the library, there will be conflicts and it can cause multiple different issues.

I hope that helps, but if you still have issues, please let me know a specific URL and any steps we need to take to recreate the issues so we can investigate further.

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

None
Hi,

I enabled enable the "Always Parse Tags" setting & got the comment feature back :)

However, still not able to get the video back. It's youtube link, hence assume something to do with the google stuff..

Will dig bit more, if stuck will mail you url + admin details.

Thanks
Davis
The topic has been locked.
Active Subscriptions:

None
Hi again,

I did some more systematic testing..

-Firstly removed the share button since I saw the below post on www.sourcecoast.com/jfbconnect/docs/gene...on-support-questions.
"When using the Share button, some other Facebook modules do not appear."

- I then disabled JFBCSystem plugin. Now the fb like & fb follow buttons were visible. Also the comments section came to life. Video was still missing.

-Enabled JFBCSystem plugin. fb like, fb follow & the comments section were all gone. The video was missing regardless.
//proves JFBC is cause of one part of the problem atleast, with respect to the fb buttons / comments.

-Now with JFBCSystem plugin enabled, I enabled "Always Parse Tags" setting.
fb like, fb follow & the comments section worked.

I am OK with this workaround. My only concern though is, when I hover over the Always Parse Tags" setting, it says there could be a performance impact. This is worrying.. What sort of hit are we talking about here?

-I'm still clueless on the video link not working.. Sending you the site details on email..

Thanks in advance
-Leo
The topic has been locked.
Support Specialist
The performance impact would be on the order of milli-seconds *after* the whole page has loaded. In most cases, it's imperceptible to the user. The impact would also *only* be on the pages that *don't* have any Facebook features. On the ones with Facebook features, we have to parse the tags. That setting simply skips a little bit of code on pages that we know don't have any Facebook features.

So, in short, I wouldn't worry about that at all.

As for the video, if the JFBCSystem plugin is disabled and the videos still don't work, I'm not sure JFBConnect is related at all. We'll gladly take a look. As mentioned though, when that plugin is disabled, JFBConnect is completely disabled. Perhaps the SCLogin module is causing some sort of problem on the page, but not sure. We'll gladly take a look.

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

None
Yea, I could sense it was parsing after the page load.
Err....I can be more selective with the fb buttons, but the comments would need to be present on every single advert. The number of adverts, I expect to grow obviously as the site becomes popular (hopefully), which was the prime concern on the performance side of things.
Anyways, we will see how it goes..

I agree, there is no evidence of JFBConnect being the culprit for the video going missing, but same time would like to explore all angles (like the SClogin module as you mentioned).

btw, is there any possibility to get the comments working without having to enable 'Parse tags'??

Thanks
Davis
The topic has been locked.
Support Specialist
Davis,
With your previous code of:
<div class="fb-like" data-href="myfbpage" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div>
That was performing the same task and being parsed after the page was loaded as well. There shouldn't be any difference in what's being done. Your code probably had a Facebook Javascript include for a file loaded called sdk.js. That Javascript shouldn't be included in the page anymore as JFBConnect is including it already. Beyond that, your code is not any different than it was before.

As for the video, I'm a bit stumped there as well. If you come up with anything or narrow things down further, let me know and we'll gladly help investigate further.

For the comments, there's a few things you could do. Simply replace your comment code with the JFBConnect comment module (create an SCSocial Widget as Facebook -> Comments) or, in your page, where you have the comment box tag already, simply replace that with:
{JFBCComments}
Either way though, Facebook won't render the comment box until the page has loaded. That's simply how their Javascript work. It waits for the page to be fully ready, then scans for Facebook tags and replaces them. No way around that.

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

None
Hi Alex,

Thank you very much for your excellent support.

-On the video issue, the DJ-Classifieds developer was able to resolve this (yet to glean from him what the problem was)

- FB buttons & comments module -I assume either way both items get loaded after the page is rendered, so virtually the same effect.
Since, At the moment I have both working, Is it okay to leave it as is? I would rather not hassle myself with additional work of creating SCSocial Widget etc

Lastly, I have some extensions, which used to stream facebook & g+ albums to my site.
Now that we seen some conflicts with the javascript libraries, JFBConnet working with other components. Would like to know your thoughts on me installing the above components?
Emm.... They are a must for my site, but same time I wouldn't want to cause any disruptions due to a conflict with JFBConnect.
Or better, does JFBConnect provide any such similar feature?

Thanks
Davis
The topic has been locked.
Support Specialist

-On the video issue, the DJ-Classifieds developer was able to resolve this (yet to glean from him what the problem was)

Awesome! Glad to hear you got it going and especially glad that it wasn't something on our end (I hope) :D

- FB buttons & comments module -I assume either way both items get loaded after the page is rendered, so virtually the same effect.
Since, At the moment I have both working, Is it okay to leave it as is? I would rather not hassle myself with additional work of creating SCSocial Widget etc

Yup, either way would have the same effect. Our Easy Tags and SCSocial Widget are meant to make it easier to configure things if they're not already setup. If they are already setup, then there's no point to break it if it works. The only thing to note again is to make sure you aren't re-including the Facebook Javascript library on those pages. That code comes with the configuration tools from Facebook.. all you need is the <div class='fb-like'..></div> code on the page, not the script tags.

Lastly, I have some extensions, which used to stream facebook & g+ albums to my site.

It depends on how they work.. if they are fetching the information in the background, caching it (so it doesn't have to communicate with Facebook or Google on each page load), and then only rendering the cached data to the page, they should work without conflicting with JFBConnect.

With that said, JFBConnect does have the "Channels" feature where you can show the feed from a Facebook Page or Group, Twitter Stream or LinkedIn Company Page on your site. It follows the guidelines above regarding caching to make sure there's a minimal performance impact as well. You can see an example below in the SC Social Stream on this page.

If there was something more specific you were looking to import from Google or Facebook (you mention albums), let me know. We're always looking to add more Channels to our current offerings.

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

None
Thanks again. Nope, it was a bug on a different module, nothing to do with JFBConnect :)

The only thing to note again is to make sure you aren't re-including the Facebook Javascript library on those pages. That code comes with the configuration tools from Facebook.. all you need is the <div class='fb-like'..></div> code on the page, not the script tags.


Emmm... I would need some guidance there, How do I check this?

JFBConnect does have the "Channels" feature where you can show the feed from a Facebook Page


Yep, I saw that. However my requirement is specific to streaming photo albums... I didn't see anything around those lines, hence the question...

Thanks
Leo
The topic has been locked.