Please Help trying to load facebook sdk which line do I insert at ?

please view my source code at www.sellorshop.us

I want to insert SDK java script for Facebook logins ect.
which line do i insert this code....


  window.fbAsyncInit = function() {
    // init the FB JS SDK
    FB.init({
      appId      : '432493466860441',                        // App ID from the app dashboard
      channelUrl : '//WWW.sellorshop.us/channel.html', // Channel file for x-domain comms
      status     : true,                                 // Check Facebook Login status
      xfbml      : true                                  // Look for social plugins on the page
    });

    // Additional initialization code such as adding Event Listeners goes here
  };

  // Load the SDK asynchronously
  (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/en_US/all.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));

And let me know if you see any issues with my code on my site I am a newbie ,Thank You so much

Comments

  • I can't help but notice you don't appear to be using Enyo on your website? This forum is designed for help with the Enyo JavaScript framework; for help with the Facebook SDK I would recommend you check out their support forums.
Sign In or Register to comment.