P.S. This is the Katz family right after the ball dropped on December 31st. Let’s just say that things can only get better from here on out…
// Get the first script element, which we'll use to find the parent node var firstScriptElement = document.getElementsByTagName('script')[0];
// Create a new script element and set its id var facebookJS = document.createElement('script'); facebookJS.id = 'facebook-jssdk';
// Set the new script's source to the source of the Facebook JS SDK facebookJS.src = "https://connect.facebook.net/en_US/all.js";
// Insert the Facebook JS SDK into the DOM
firstScriptElement.parentNode.insertBefore(facebookJS, firstScriptElement);
}());
Story Source link