This wikiHow teaches you how to add a clickable Facebook “Like” button to your Blogger (blogspot.com) website. After building the button in the Like Button Configurator, you’ll just need to copy and paste two bits of code into your Blogger dashboard, making one quick edit for compatibility.

Part 1
Part 1 of 3:

Creating a Like Button

  1. Go to https://developers.facebook.com/docs/plugins/like-button . You can use any modern web browser, such as Chrome or Safari.
  2. It’s in the third section of the page.
    Advertisement
  3. Most Blogger users can leave this box blank, as the default width (450 px) works fine. Note that this is the width of the entire plugin, not the Like button itself.
  4. You’ll see a preview of each style when its selected.
  5. By default, your button will say “Like.” If you prefer, you can change it to say “Recommend.” When someone clicks the button, their Facebook followers will see “(person’s name) Recommends this. [1]
  6. The button preview beneath the configurator will show you what each size looks like.
  7. If the box is checked, a button that says “Share” will appear next to the Like button on your blog. If someone clicks this button, they’ll have the opportunity to enter some of their own text before sharing the link with their Facebook friends. [2]
  8. Now you’ll see two boxes containing HTML code you must paste into different areas of Blogger.
    Advertisement
Part 2
Part 2 of 3:

Adding the Code to Your Template

  1. Sign in to https://www.blogger.com . Use another tab or browser window, as you’ll need to copy and paste the code from Facebook to Blogger.
  2. It’s on the left side of the screen, near the bottom of the menu.
  3. Always make a backup when editing your blog’s HTML code directly.
    • Click the Backup / Restore button at the top right corner of the page.
    • Click Download Template .
    • Enter a name for your file, e.g. “blog template backup.”
    • Click Save .
  4. It’s just beneath the preview image of your blog.
  5. It’s the code in the top box, under “Step 2.”
    • You can copy the text by highlighting it, then pressing Control + C or Command + C .
  6. The code must be pasted after the line that begins with <body , preferably on the very next line. [3]
    • To give yourself a place to paste code, click before the first character of the line after the body tag, then press Enter or Return .
    • Click the blank line, then press Control + V or Command + V to paste.
  7. Don’t include the quotation marks.
    • For example, “//connect.facebook.net/en_US/sdk.js#xfbml=1 & version=v2.8” becomes “//connect.facebook.net/en_US/sdk.js#xfbml=1 &amp; version=v2.8"”
    • If you accidentally skipped an “&,” you’ll see an error that says “Error Parsing XML” just above the code. Go back to the pasted code, find the &, and replace it with &amp; .
    Advertisement
Part 3
Part 3 of 3:

Adding the Button to Your Layout

  1. You’ll have to return to your other browser window or tab to find it. This is the code in the box beneath “Step 3.”
    • You can copy the text by highlighting it, then pressing Control + C or Command + C .
  2. It’s on the left side of the Blogger dashboard, just above “Template.”
    • In most cases, you’ll want the button to appear in a header or footer.
  3. You’ll have to scroll down a little bit to find it.
  4. You can do this by clicking into the box and pressing Control + V or Command + V .
  5. Now you’ll see a gadget box called “Facebook.”
    • Click Preview at the top right corner of the page to make sure the button appears where it should. If you don’t like the location, you can drag the “facebook” box to one of the other sections in your layout.
  6. It’s at the top right corner of the screen. Now, when someone enjoys your blog, they can easily share it with all of their Facebook friends.
    Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I add social media share buttons under posts in Blogger?
    Community Answer
    Click the "Layout" link on your Blogger dashboard, then click "edit" at the bottom of the box called "Blog Posts." You can choose to show or hide all social media buttons by clicking the checkbox next to "Show Share Buttons."
  • Question
    There is no template below layout, Instead there is theme. Ant ideas?
    Osama Shahzad
    Community Answer
    Template has been renamed as theme. You can find the "Edit HTML" option in theme now.
Ask a Question

      Advertisement

      Video

      Things You'll Need

      • Blogger account
      • Facebook account

      About this article

      Thanks to all authors for creating a page that has been read 370,798 times.

      Reader Success Stories

      • Emygidius George

        Jun 6, 2016

        "I learned how to put Like on Facebook. I know it will be helpful to me."

      Is this article up to date?

      Advertisement