--> Add Open Graph Tags To Blogger (with Images) | Experience Lab - Online business creation and development guide for bloggers and startups

Add Open Graph Tags To Blogger (with Images)

Updated on: March 12, 2017 The Open Graph meta tags were the social media meta tags for Facebook. These tags help you to make your blog po...

Updated on: March 12, 2017

The Open Graph meta tags were the social media meta tags for Facebook. These tags help you to make your blog post a rich object in the social media world. In short, when someone shares your blog post, the shared item looks better on Facebook. It works as Twitter card for twitter works.

If you share your post on Facebook without setting up open graph tags, it will look like this:

Facebook Open graph tags for blogger
Facebook post without open graph blogger

Which is not an impressive piece of content. Most probably a social media user will ignore this, instead of sharing or clicking it, But if you add the Facebook open graph meta tags, your posts will looks like this:

Facebook post with open graph tags blogger

This is more likely to get clicked and shared by users, so if you want to setup Facebook's open graph social media meta tags protocol to your blogger just follow the given step by step instructions with images.

Those users who get a wrong image (or a wrench img) on sharing the post on Facebook should also follow the given steps.

How To Implement Open Graph Meta Tags in Blogger

Step 1. Log in to your Blogger account, then goto Themes > Edit HTML.

Edit Blogger Theme

Step 2. Click anywhere inside the code, and then search for the following code (Use CTRL+F):

<html

Step 3. Add below code at the end of searched code before close tag '>'.

xmlns:og='http://ogp.me/ns#'
Add open graph in blogger

Step 4. Again search for the following code:

<b:include data='blog' name='all-head-content'/>

Step 5. Add this code just below it:

<meta content='article' property='og:type'/>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='[homepage Image URL]' property='og:image'/>
<meta content='[homepage Image Width]' property='og:image:width' />
<meta content='[homepage Image Height]' property='og:image:height' />
</b:if>
<meta expr:content='data:blog.title' property='og:site_name'/>
<meta content='[Facebook profile Id]' property='fb:admins'/>
<b:if cond='data:blog.pageType == "item"'>
<meta content='https://www.facebook.com/username' property='article:author'/>
</b:if>
<meta content='en_US' property='og:locale'/>

Note: Open graph Tags for post "URL", "image", "description" and "title" are already there by default, so no need to add them again.

Step 5. Configuration:

Note: Recommended Image dimensions for better output in Facebook post: 1200 x 630px

  • Replace [homepage Image URL] with the URL of the image for homepage.
  • Replace [homepage Image Width] with the Width of the homepage Image.
  • Replace [homepage Image Height] with the Height of the homepage Image.
    For Height and Width, Use only numeric value like '1200' or '630')
  • Note: This image will be shown when you will share your main blog address or homepage on Facebook.

    Read: How to Upload and Get Image URL

  • Replace [Facebook profile Id] with your Facebook profile id. To get your profile id Click here.
  • Replace username with your Facebook username.
  • To find your username visit your Facebook profile, Then check your address bar.
    It’ll look like https://www.facebbok.com/username

    If you have not set the username yet it may look like:
    https://www.facebook.com/profile.php?id=some-random-number
    You can replace the above URL with this or you can create your username by visiting your Facebook's settings.

  • (Optional) Here en_US is the language_TERRITORY that is US-English if your blog is in different language replace it. For language code details click here .

Step 6. Click Save theme.

That's it !

Now, your shared post on Facebook will become a rich object with beautiful appearance. You can also setup Twitter card in the same way. If you have any issue use Facebook open graph, Use this Facebook Debugging tool or comment below. Stay Updated, Browse Howbloggerz! :)

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Add Open Graph Tags To Blogger (with Images)
Add Open Graph Tags To Blogger (with Images)
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgakcp4CB9zGBO9bUPL5kp4vTkFEUI-RZhaVRxyIRlQHa4b3DS6VxLXf5k_jPJyksYa85hpADFgyd5z-E2iAESnCXJ3lI-ssWcHuNEuf2ypbgmu9vGgOJfVb666VHfoPErabyiMBE2wgTnZ/s1600/Open-graph-tags-for-blogger.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgakcp4CB9zGBO9bUPL5kp4vTkFEUI-RZhaVRxyIRlQHa4b3DS6VxLXf5k_jPJyksYa85hpADFgyd5z-E2iAESnCXJ3lI-ssWcHuNEuf2ypbgmu9vGgOJfVb666VHfoPErabyiMBE2wgTnZ/s72-c/Open-graph-tags-for-blogger.png
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2016/02/add-open-graph-tags-to-blogger-with.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2016/02/add-open-graph-tags-to-blogger-with.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy