Topic-icon JFBCFan disappears on front page

Active Subscriptions:

None
10 years 5 days ago - 10 years 5 days ago #43315 by Cydonian
Hello,
I am using J2.5.19 and JFBConnect 6.0.4 on my web site and I placed JFBCFan module on front page, it is working for sometime (1-2 minutes) and then suddenly it disappears on front page ?!? I am using "jQuery Easy Plugin" to overcome jquery conflicts because without "jQuery Easy Plugin", a user was not able to login to web site with "facebook login" button. I enabled web site's debug option but I didn't see any error or warning.
I need help! Thanks!
Last edit: 10 years 5 days ago by Cydonian.
The topic has been locked.
Support Specialist
10 years 4 days ago #43326 by alzander
What browser are you testing with? I loaded your home page, and the Fan module is showing properly for me after I wait quite a few minutes. I've tried reloading multiple times.

I do see another inclusion of the Facebook Javascript library on your page. That may be causing the issues you're running into. The following block of code should be disabled from whatever extension is adding it:
<div id='fb-root'></div><script type='text/javascript'>

      // Load the SDK Asynchronously
      (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = '//connect.facebook.net/tr_TR/all.js';
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));
JFBConnect is loading a similar, but different, block of code directly underneath that.

Finally, you shouldn't need jQuery Easy just for JFBConnect. It shouldn't cause problems though. If you have problems with jQuery conflicts and JFBConnect, enable the "Include jQuery / Bootstrap" setting in the JFBConnect -> Configuration area. That will load a compatibility mode version of those libraries specific to JFBConnect that shouldn't conflict with anything else.

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

None
10 years 4 days ago #43333 by Cydonian
I was using Mozilla Firefox.
I searched for the code of another inclusion of "Facebook Javascript library" you mentioned, on main page and I saw that it was a part of "sh404sefsocial plugin". Although I was not using it, it still included that script on my main page so I went to Extensions > Plugins manager > and disabled "sh404SEFcore - Social buttons plugin" in admin panel. It is not loading another inclusion of Facebook Javascript library now, thanks for your detailed check, Alex :)
Then I also disabled "jQuery Easy Plugin" to check if there is a jquery conflict problem while logging into web site by JFBConnect Facebook button and it is also working now. JFBCFan module is working without any problems, too.
So, I think, "sh404sefsocial plugin" was causing the jquery conflict with JFBConnect and may be also with JFBCFan module.
Thanks for your help!
The topic has been locked.
Support Specialist
10 years 3 days ago #43354 by alzander
Fantastic! Glad to hear you got things going. If you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.