Created
October 3, 2012 04:38
-
-
Save stevereich/3825026 to your computer and use it in GitHub Desktop.
Facebook comment count on 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
// this code goes right after <data:post.body/> | |
<b:if cond='data:post.isFirstPost'> | |
<script>(function(d){ | |
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} | |
js = d.createElement('script'); js.id = id; js.async = true; | |
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
d.getElementsByTagName('head')[0].appendChild(js); | |
}(document));</script> | |
</b:if> | |
<a expr:href='data:post.url + "#fb-root"'><fb:comments-count expr:href='data:post.canonicalUrl'/> comments</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment