Get Facebook to show feature image for your Blog's Homepage

Facebook seemingly exclusively uses Open Graph protocol (og:image)  tags to determine which image to feature. As a result, sharing your content to Facebook from blogspot has no image or a broken image for the homepage.

To fix this, you can explicitly specify the feature image on feed pages.
  1. Select your image, and copy the URL
  2. Go to Template => Edit HTML
  3. Search for the 'all-head-content' tag
  4. Underneath that tag, add the following XML, replacing [Your image URL] with the URL of the image you want to feature.
    Note: Make sure to leave the single AND double quote-marks wrapping the URL.
<b:if cond='data:view.isMultipleItems'>
  <b:with var='image'
          value='"[Your image URL]"'>
    <meta property='og:image'
          expr:content='resizeImage(data:image, 1200, "1200:630")' />

Resizing the Feature Image

If the image you have uploaded is hosted on a Google product, it can be resized to the dimensions that Facebook recommends (1200x630). If it is not correctly resizing, upload the image to Blogger (in the post editor) and get the URL from there, and try again.

How it works

Take, for example, this 'Medium' image which I've added to this post.

Its url is

In bold is /s320/, we see the sizing parameters of the URL - s320. If we change this to be w1200-h630-p-nu (width 1200, height 630, smart crop and no upscale), we get a nice feature image for facebook. (You can follow the link to see the size it displays at.)

Note that for this to work, you'll need a nice big original image.

Happy Blogging!


  1. Hi! Tried doing this, but its not helping! Pl suggest

  2. Could you please help me out?
    Here is a link :)

    1. You have a bunch of og:image tags on that page (you can see this if you right-click and view source). Which image are you wanting to be the FB feature image?


Post a comment

Popular posts from this blog

Add syntax highlighting to my Blog

Change my post timestamps to a custom format

Add snippets to the Emporio theme