Saturday, April 8, 2017

How I added Facebook comments to my Blogger site.

1. go to https://developers.facebook.com/docs/plugins/comments#configurator
    fill out details like your site's url (your blogger's main url).
    width of 550
2. Click "Get Code", you'll get 2 pieces of code
3. Add the first piece of code as an HTML/Javascript gadget on your blog.
4. With the second piece of code, copy it, then in Blogger, go to Theme/Edit Html
find <b:include data='post' name='post'/>
add the second piece of code after the found text.
5. But for your all your posts not to have all the same comments,
you'll have to change in the second piece of code, instead of data-href="your_blog_URL"
put expr:data-href='data:post.url'
expr: just tells it that it's an expression
and 'data:post.url' will grab the the posts url for each posts as it loops through them so you'll get unique comments for each posts.

You might also be interested in How to add facebook like button to each posts on blogger