Tweet
<script>
//Facebook Recommendation bar by http://www.source-codes.co.in/
//this notice must stay intact for legal use
//For more visit http://www.source-codes.co.in/
//<![CDATA[
(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&appId=PASTE YOUR APPID HERE";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
//]]>
</script>
<b:if cond='data:blog.pageType == "item"'>
<fb:recommendations-bar action='like' max_age='0' num_recommendations='5' read_time='5' side='right' site='http://www.source-codes.co.in/' trigger='40%'/>
</b:if>
The Facebook Recommendation Bar displays some blog posts which have liked by some readers which also helps in engaging some of the new readers in your blog. It only appears when a reader has finished reading some post.
To implement this on your blog follow the simple steps below.
1> Go to https://developers.facebook.com/apps
2> Click on Create New App on the upper right corner.
3> Type "Recommedation Bar" in the App Name.
4> Provide the security check.
5> After that you will be provided with an App Id. Store it somewhere safe.
6> Go to your blogger account --> template --> edit html.
7> Find <html where the whole code will be some thing like this ....
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
Replace this code with this one ....
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:fb='http://ogp.me/ns/fb#'>
8> Now, using Ctrl+f, find <body>
Then paste this code just after the <body> line ....
<div id='fb-root'/>
<b:if cond='data:blog.pageType != "static_page"'>
<div style='z-index:999999; position:absolute;'>
</div>
</b:if>
9> Save your template and view a post to see the effect.