Topic-icon facebook javascript

Active Subscriptions:

None
12 years 2 months ago #42394 by agmnet
facebook javascript was created by agmnet
i update JFBconnect and i did check errors: it gave me a warn that my website is using another extension using facebook javascript but i couldn't tell which one!
please Alex can you do some check if you can know which is it!
www.elmarada.org
The topic has been locked.
Support Specialist
12 years 2 months ago #42401 by alzander
Replied by alzander on topic facebook javascript
I'm not sure what's including it, but there definitely is another inclusion. The code is right after your body tag and looks like:
<body id="bd" class="homepage com_content view-category green rtl el_marada fs4 left-main-right ">
      <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/ar_AA/all.js';
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));

    </script><div id="fb-root"></div>
<script type="text/javascript">
    window.fbAsyncInit = function() {
    FB.init({appId: '241860785861926', status: false, cookie: true, xfbml: false});
FB.Event.subscribe('comment.create', jfbc.social.comment.create);
FB.Event.subscribe('edge.create', jfbc.social.like.create);
jfbc.social.googleAnalytics.trackFacebook();
    };
     (function(d, s, id){
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/ar_AR/all.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
    </script>
The first block that starts with "// Load the SDK Asynchronously" is coming from the other extension. It's loading the FB Javascript library and not including an appId, which could cause problems for JFBConnect since we require the AppId to be properly loaded.

If you're using sh404SEF, look to see if you have a "Social Buttons" plugin (or something like that) enabled in the system group. If not, look for any other social plugins in there that may be causing it and test what happens when disabled.

I hope that helps get you going.

Thanks,
Alex
The topic has been locked.