Last active
December 25, 2015 18:19
-
-
Save midoghranek/7019395 to your computer and use it in GitHub Desktop.
Best way to add facebook comments to blogger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<b:if cond='data:blog.pageType == "item"'> | |
<div class="fb-comments" expr:data-href='data:post.url' data-colorscheme="light" data-numposts="5" data-width="600"></div> | |
<b:if/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/ar_AR/all.js#xfbml=1&appid=APP_ID"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fb:comments-count expr:href='data:post.url' /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment