How to add Facebook like button in Blogger BlogSpot 2013
Step 1 :
Login to blogger.com , Go to your Blogger dashboard , Click on template , Edit Html ,
Click on Expand Widget Templates and
Place Facebook JavaScript SDK Code give below on Blogger template
Just after opening of your <Body> Tag or Just Before closing of your <Body> Tag,
you can also ass Code between <Body> tag .
This Code plays important role Without this Facebook JavaScript SDK Code your Facebook code will not work properly for Multi-page ,
By placing this Facebook JavaScript SDk code in < Body > tag , Every post of your blogger blog will work fine with proper counting
<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>
Step 2 : Now Place Code FB Like Button in blogger , where you want to render Facebook like Button . You can add this Code to blogger using Add widgets , also you can Facebook like button below post title .
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"> </div>
Không có nhận xét nào:
Đăng nhận xét