ADS

News!! How To Install Facebook's Opened Upwards Graph Tags Into Blogger

This article shows how to install Facebook's Open Graph tags into Blogger


Why Open Graph 


xmlns:og='http://ogp.me/ns#' every bit good every bit it goes after the existing namespace statements.   For example, my electrical menstruum tag looks like:
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection'
xmlns='http://www.w3.org/1999/xhtml'
xmlns:b='http://www.google.com/2005/gml/b'
xmlns:data='http://www.google.com/2005/gml/data'
xmlns:expr='http://www.google.com/2005/gml/expr'    >

or similar this after the depict of slice of trouble is added:
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection'
xmlns='http://www.w3.org/1999/xhtml'
xmlns:b='http://www.google.com/2005/gml/b'
xmlns:data='http://www.google.com/2005/gml/data'
xmlns:expr='http://www.google.com/2005/gml/expr'
xmlns:og='http://ogp.me/ns#'>


2   Add the Open Graph tags


Find the closing </head> tag.
(Hint:  I frequently search for only </head   ie without the closing >, inwards illustration there's something else inwards the tag inwards my template)


Put the side past times side code similar a shot before it:
<!-- Begin Open Graph metadata --> 
<meta expr:content='&quot;en_US&quot;' property='og:locale'/> <meta expr:content='data:blog.canonicalUrl' property='og:url'/> 
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta expr:content='data:blog.pageName' property='og:title'/>
<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='
URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE-POST' property='og:image'/>
</b:if>
 
<b:if cond='data:blog.metaDescription'>
<meta expr:content='data:blog.metaDescription' property='og:description'/>
<b:else/>
<!-- Still looking for a way to purpose the ship snippet if there's no description -->
</b:if>
<!-- End Open Graph metadata -->


This code needs to final adapted for your blog.   In particular:
  • en_US
This value is fine if your weblog is written inwards US-English. But if y'all lot are writing inwards UK-English, y'all lot may wish to alter it to en_GB.   

And if y'all lot are using a dissimilar linguistic communication altogether, y'all lot should alter it to the 2 letter of the alphabet code for that language-territory combination:   see https://developers.facebook.com/docs/internationalization/  for to a greater extent than information unopen the codes that they support

  • URL-FOR-IMAGE-YOU-WANT-TO-USE-IF-THERE-IS-NOT-A-THUMBNAIL-PHOTO-IN-THE-POST 
Replace this alongside the web-address of a cinema that y'all lot wish to purpose if the individual ship doesn't convey a why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are thumbnail  - perchance your logo, or a blogger logo.


  • App-ID and Facebook-Profile-ID
If y'all lot convey got an App-ID associated alongside your blog, perchance because y'all lot signed upwards to purpose Facebook commenting alongside it, so y'all lot may also wish to add together together the side past times side statements, only before  the "<!-- End Open Graph metadata -->"
<meta content='App-ID' property='fb:app_id'/>
<meta content='Facebook-Profile-ID' property='fb:admins'/>


Of course of didactics of didactics putting inwards your receive values instead of the ones inwards blood-red   (I'm assuming that if y'all lot knew plenty to teach an App-ID, so y'all lot testament know how to notice it, every bit good every bit also unopen the risks associated alongside linking your Facebook-profile-ID to your blog.)


3    Check it's complete:

Preview the template changes to construct sure enough that they've worked, every bit good every bit so save them.




Troubleshooting


Testing the OG tags

Facebook convey a tool that y'all lot tin plow over notice purpose to encounter what values the OG tags inwards your weblog have.
It is works life here: https://developers.facebook.com/tools/debug

Enter the URL of i of the posts from your weblog every bit good every bit click Debug to encounter the OG tags which Facebook finds for it.



Descriptions

The Descriptions tag testament exclusively operate if y'all lot convey Search-descriptions on (Option > Search > Meta-tags > Enabled), every bit good every bit convey entered a search description for each ship using the post-editor.   I had hoped to final able to purpose post.snippet when this wasn't available, but convey non been able to operate out the right syntax to arrive at this.

Pictures

Facebook would similar y'all lot to purpose an ikon that's at to the lowest marking 200x200 every fleck your posts's thumbnail ikon or every fleck the default ikon to purpose for posts that don't convey one.

If the cinema that y'all lot purpose is smaller than this, they arrive at appear to purpose it.

However y'all lot testament encounter the side past times side message when y'all lot purpose a debugging tool to await at what tags Facebook is reading from your site:
og:image should final larger
Provided og:image is non large enough. Please purpose an ikon that's at to the lowest marking 200x200 px. Image 'http://3.bp.blogspot.com/XXX.png' testament final used instead.




Related Articles:


why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are How to add together together Twitter-Cards to Blogger - these are the Twitter equivalent to Open Graph tags

why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are Advantages every bit good every bit disadvantages of editing your Blogger template

why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are Post.thumbnail:   a summary ikon for a post

why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are How to edit your Blogger template

why having Facebook every bit good every bit Twitter tags installed into your weblog is important.

To cutting his long even short, if y'all lot install them, so when someone shares your blog-post, the shared item looks better. This way that to a greater extent than people are in all probability to follow the link and/or business office it themselves - so your weblog gets to a greater extent than traffic, every bit good every bit people think you're to a greater extent than professional person mortal every bit good every bit thence credible.

Neil also stated that if y'all lot don't purpose Wordpress, "you’ll require to manually generate meta tags for each page on your site" - but fortunately for Blogger users who are Linking your weblog to the social networks

Subscribe to receive free email updates:

ADS