Hi all!
I am not good with codes so i need some help here. I am trying to install a facebook recommend button on my site. they give the option of HTML5, XFBML and IFRAME and give a code for each. It says to copy and paste the code but when i do it either doesnt show up at all or literally just the code shows on the page.
I do not know if there is something i need to add to the code myself or what i am doing wrong and would love some help. Here is one example of the codes i am given:
<div id="fb-root"></div>
<script>(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#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
I am not good with codes so i need some help here. I am trying to install a facebook recommend button on my site. they give the option of HTML5, XFBML and IFRAME and give a code for each. It says to copy and paste the code but when i do it either doesnt show up at all or literally just the code shows on the page.
I do not know if there is something i need to add to the code myself or what i am doing wrong and would love some help. Here is one example of the codes i am given:
<div id="fb-root"></div>
<script>(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#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Comment