Add Facebook Like to Blogger

Facebook has recently added the ability for its users to "Like" just about any content on the web and have that activity posted to the users' walls. This facility lets you share content more readily and also gives you an idea of how some of your readership traffic is responding to your content.

This article provides step-by-step instructions on how to add the "Like" button to your Blogger (BlogSpot) blog, one of the more commonly used blogging services.

Steps

 * 1)  Go to the "Facebook Developers" page: http://developers.facebook.com/docs/reference/plugins/like.  [[Image:FBdeveloperslikepg.png|350px|center]]
 * 2) [[Image:VerbtodisplayFB.jpg|170px|right]]   Set the options you want. Specifically, select whether you want a "Like" or a "Recommend" button. The sample button on the page will automatically update to reflect your selections.
 * 3)  [[Image:URL_to_likeFB.jpg|170px|right]] Leave the "URL to Like" field blank. You will be replacing that soon.
 * 4)  [[Image:Get_codeFB.jpg|170px|right]] Click "Get Code". You will see something that looks like this:    &lt;iframe src="http://www.facebook.com/plugins/like.php?href=   http%253A%252F%252Fexample.com%252Fpage%252Fto%252Flike&amp;layout=standard&amp;   show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light"   scrolling="no" frameborder="0" allowTransparency="true" style="border:none;   overflow:hidden; width:450px; height:px"&gt;&lt;/iframe&gt;
 * 5)  Replace the following text:
 * 6) * src= above with: expr:src='
 * 7) * http%253A%252F%252Fexample.com%252Fpage%252Fto%252Flike&amp;layout part with: " + data:post.url + "&amp;layout
 * 8) * light" with: light"' -- notice the new trailing apostrophe
 * 9) * height:px with: height:35px -- otherwise, Firefox will make the iframe really big.
 * 10) *Leave a copy of the final code somewhere accessible for you to transfer to Blogger.
 * 11)  [[Image:Bloggerdashboardlogo.png|170px|right]] Go to your Blogger Dashboard.
 * 12)   Open your blog's layout and click Edit HTML.  [[Image:Bloggeredithtml.jpg|450px|center]]
 * 13) Back up your template! Do this by clicking Download Full Template.  [[Image:Downloadfulltemplateblogger.jpg|450px|center]]
 * 14)  Check Expand Widget Templates.  [[Image:Expandallwidgetsblogger.jpg|450px|center]]
 * 15)  Find a place to put the Facebook "Like" code into your HTML layout. A good location is directly after or below: &lt;div class='post-footer'&gt;
 * 16) * Use the browser "Find" mechanism to help you locate it.
 * 17) Save and check that the button has appeared. Once you can see it, you're done!  [[Image:FBlikeonablog.png|450px|center]]

Tips

 * As of May 16, 2010 this feature is only available in the English language.

Warnings

 * Always back up your blog's template before making changes to its layout!
 * It is recommended that you keep "Show Faces" unchecked and use the "button_count" layout. Otherwise, less-savvy users who did not configure their privacy settings properly may be turned off by their profiles appearing on your blog after "Liking" it.

Things You'll Need

 * Blogger account
 * Facebook account

Related Tips and Steps

 * How to Permanently Delete a Facebook Account
 * How to Deactivate a Facebook Account
 * How to Make a New Facebook Account
 * How to Create a Blogger Blog
 * How to Add Google Analytics to Blogger

Sources and Citations

 * http://c-sharpener.blogspot.com/2010/04/blogger-how-to-add-facebook-like-button.html (Original source — shared with permission)