I am trying to implement the Facebook 'Like' Button on my product info pages and believe I have everything in place except for one MINOR thing.... a bit confused on how to load the JavaScript SDK in my site?
I have been looking here on Facebook and it seems that the easiest way to do it is to put this bit of code:
PHP Code:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'your app id', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
in my page.
Where in the product page do I put this bit of code to load the SDK?
Bookmarks