Open Graph Protocol/ Meta Tags/ Micro Data for Blogger
// Turn <head> tag like this - | |
<head prefix='og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#'> | |
// Then just below this add this code - | |
// Copyright (c) 2013, Vinay Prajapati, Tech Prevue Labs, India | |
// http://www.techprevue.com | |
<b:if cond='data:blog.pageType != "index"'> | |
<meta expr:content='data:blog.title' property='og:site_name'/> | |
<meta expr:content='data:blog.pageName' property='og:title'/> | |
<meta content='article' property='og:type'/> | |
<b:else/> | |
<meta expr:content='data:blog.title' property='og:title'/> | |
<meta content='blog' property='og:type'/> | |
</b:if> | |
<meta expr:content='data:blog.metaDescription' property='og:description'/> | |
<meta expr:content='data:blog.canonicalUrl' property='og:url'/> | |
<b:if cond='data:blog.postImageThumbnailUrl'> | |
<meta expr:content='data:blog.postImageThumbnailUrl' itemprop='image'/> | |
<b:else/> | |
<meta content='http://blog-img-url' property='og:image'/> | |
</b:if> | |
<meta content='1020412247' property='fb:admins'/> | |
<meta content='348446671899960' property='fb:app_id'/> | |
<meta content='214801001979659' property='fb:page_id'/> | |
<meta content='en_US' property='og:locale'/> | |
<meta content='en_GB' property='og:locale:alternate'/> | |
<meta content='hi_IN' property='og:locale:alternate'/> |
This comment has been minimized.
This comment has been minimized.
I do not remember where I read it, but I think today you don't need to add "fb:admins" property. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Some values to change -