- [Layout] -> [Edit HTML]
- Turn on the checkbox "Expand widget templates"
- Into the tag of class='post-header-line-n' or class='post-footer-line-n', put the snipet like below:
<fb:like expr:href="data:post.url"/>
<span id="fb-root"/>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'your_app_id', status: true, cookie: true, xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
That's OK!
No comments:
Post a Comment