Cannot Add SDK Javascript Into Blogger [Add Facebook Like Button]

This post will shared about “Error parsing XML : The reference to entity “version” must end with the ‘;’ delimiter”. Since 5 hours ago, i’ll trying to put facebook like button or box into my blog, then what happen? on my blog show notification message error parsing xml.

And i try to add this code like this;

<div id="fb-root"></div><script>/* <![CDATA[ */    (function(d, s, id) {        var js, fjs = d.getElementsByTagName(s)[0];        if (d.getElementById(id)) return;        js = d.createElement(s); = id;        js.src = "//";        fjs.parentNode.insertBefore(js, fjs);    }(document, 'script', 'facebook-jssdk'));/* ]]> */</script>

note: for fixing error parsing xml, add this code which i block with red colour.

And see again your blog,

If you want add facebook like box, you must copy paste the above code and put into tag </body> and also put this script:

<div class="fb-like" data-href="" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div>

note: For script which i coloured with blue, change your url facebook.

And now my facebook like button has showing under my blog post.

Thanks, Have fun!

This post is licensed under CC BY 4.0 by the author.