Last active
January 7, 2017 02:13
-
-
Save vinayprajapati/5900461 to your computer and use it in GitHub Desktop.
Open Graph Protocol/ Meta Tags/ Micro Data for Blogger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'/> |
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
Some values to change -