This code is from the facebook application sample. Paste <div id="fb-root"></div> into the document. For this, the code requires jQuery to load the script. In your case, replace //connect...../all.js ' with <script> elements.
(function() { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }());
source share