Tutorial On How To Add Open Graph Meta Tags To Blogger::
1. Go to your blogger dashboard --> Template --> Edit hmtl.2. Find for <html and add xmlns:og='http://ogp.me/ns#' at the closing end of this tag like this.
3. Now find <head> and add the following code just below it.<html...................................xmlns:og='http://ogp.me/ns#'>
<b:if cond='data:blog.pageType == "item"'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<meta expr:content='data:blog.canonicalUrl' property='og:url'/>
<meta content='article' property='og:type'/>
</b:if>
<meta expr:content='data:blog.title' property='og:site_name'/>
<b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
<b:else/>
<meta content='http://www.your-blog-logo.jpg' property='og:image'/>
</b:if>
<b:if cond='data:blog.metaDescription != ""'>
<meta expr:content='data:blog.metaDescription' name='og:description'/>
</b:if>
<meta content='Your-App-ID' property='fb:app_id'/>
<meta content='Your-Facebook-Profile-ID' property='fb:admins'/>
- Change the text in Red with your configuration.
- NOTE:: use Facebook Lint Tool to verify your Open graph meta tags.
How This Open Graph Work !!??::(Think you are sharing a post of your blog on facebook)
1. <b:if cond='data:blog.pageType == "item"'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<meta expr:content='data:blog.canonicalUrl' property='og:url'/>
<meta content='article' property='og:type'/>
</b:if>
This IF condition code structure instructs facebook to fetch your blog post title and post url is you are sharing a post of your blog.
This instructs facebook to fetch your blog title as site name while sharing.2. <meta expr:content='data:blog.title' property='og:site_name'/>
3. <b:if cond='data:blog.postImageThumbnailUrl'>
<meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/>
<b:else/>
<meta content='http://www.your-blog-logo.jpg' property='og:image'/>
</b:if>
This IF condition code structure instructs facebook to fetch your post image as thumbnail if you are sharing a post and instructs to fetch your blog logo as thumbnail when sharing your blog home page.
These tags instructs facebook to fetch your blog description stored in meta tags while sharing your blog.4. <b:if cond='data:blog.metaDescription != ""'>
<meta expr:content='data:blog.metaDescription' name='og:description'/>
</b:if>