Social Media Open Graph Meta Tags for Blogger

min
() Words
Share
Share
Tweet
Share
Share
Share
Pin it

Facebook, Twitter, Google+, Pinterest Social Meta Tags

In order to get more and more visitors to your blog, you must be a wonder to share the posts on social networks like Facebook, Twitter, Google Plus, Pinterest etc. But unfortunately, when your readers click the sharing buttons, they can not share the correct post description and thumbnail. In these cases, you have to render social media tags inside your blogger template to avoid the wrong post description and thumbnail.

Pay Attention: Yoast Alternative: All in One SEO Plugin for BlogSpot Blogger

You might have noticed that comment avatar, and other irrelevant images from your sidebars come up when you share the post on Facebook. The solution to this is to specify the image in the page metadata. We will be using open graph tags for the same.

Check out: SEO Facts: Top 10 Meta Tags for Blogs and Websites

Adding Social Media Open Graph Meta Tags to BlogSpot Blogs

  1. Login to your Blogger Dashboard >Template >Edit HTML
  2. Click inside the template editor and Press Ctrl + F
  3. Search the <head> and paste the following code snippet right below it
  4. <head prefix='og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#'> <!-- Share Image --> <link href='YOUR_LOGO_IMAGE' rel='image_src'/> <!-- Open Graph Meta Tags --> <b:if cond='data:blog.pageType != &quot;index&quot;'> <meta expr:content='data:blog.title' property='og:site_name'/> <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:else/> <meta expr:content='data:blog.title' property='og:title'/> <meta content='blog' property='og:type'/> </b:if> <b:if cond='data:blog.metaDescription'> <meta expr:content='data:blog.metaDescription' property='og:description'/> <!-- <b:else/> <meta expr:content='data:post.snippet' property='og:description'/> data:post.snippet only work after body tag --> </b:if> <b:if cond='data:blog.postImageThumbnailUrl'> <meta expr:content='data:blog.postImageThumbnailUrl' property='og:image'/> <b:else/> <meta content='YOUR_LOGO_IMAGE' property='og:image'/> </b:if> <!-- /Open Graph Meta Tags -->
    Facebook Meta Tags
    <!-- Facebook Meta Tags --> <meta content='YOUR_FACEBOOK_ID' property='fb:admins'/> <!-- find your facebook if from graph.facebook.com/your_username --> <meta content='YOUR_APP_ID' property='fb:app_id'/> <meta expr:content='&quot;en_US&quot;' property='og:locale'/> <!-- en_US refers to US English language --> <meta expr:content='&quot;en_GB&quot;' property='og:locale:alternate'/> <!-- en_GB refers to UK English language --> <meta expr:content='&quot;ne_NP&quot;' property='og:locale:alternate'/> <!-- ne_NP refers to Nepali language -->
    Google Authorship and Publisher Markup
    <link href='https://plus.google.com/+YOUR_GOOLE+_CUSTOM_NAME/posts' rel='author'/> <link href='https://plus.google.com/+YOUR_GOOLE+_CUSTOM_NAME' rel='publisher'/>
    Schema.org Markup Tags for Google+
    <!-- Schema.org Markup Tags for Google+ --> <b:if cond='data:blog.pageType != &quot;index&quot;'> <meta expr:content='data:blog.pageName' itemprop='name'/> <meta expr:content='data:blog.canonicalUrl' itemprop='url'/> <b:else/> <meta expr:content='data:blog.title' itemprop='name'/> <meta expr:content='data:blog.homepageUrl' itemprop='url'/> </b:if> <meta expr:content='data:blog.metaDescription' itemprop='description'/> <b:if cond='data:blog.postImageThumbnailUrl'> <meta expr:content='data:blog.postImageThumbnailUrl' itemprop='image'/> <b:else/> <meta content='YOUR_LOGO_IMAGE' itemprop='image'/> </b:if> <!-- /Schema.org Markup Tags for Google+ -->
    Twitter Card Tags
    <!-- Twitter Card Tags --> <meta content='@TWITTER_USER' name='twitter:site'/> <meta content='@TWITTER_USER' name='twitter:creator'/> <b:if cond='data:post.firstImageUrl'> <meta content='summary_large_image' name='twitter:card'/> <!-- summary_large_image or any other your card types --> <meta expr:content='data:post.firstImageUrl' name='twitter:image'/> <b:else/> <meta content='summary' name='twitter:card'/> <b:if cond='data:blog.postImageThumbnailUrl'> <meta expr:content='data:blog.postImageThumbnailUrl' name='twitter:image'/> </b:if> </b:if> <b:if cond='data:blog.pageName'> <meta expr:content='data:blog.pageName' name='twitter:title'/> <b:else/> <meta expr:content='data:blog.title' name='twitter:title'/> </b:if> <b:if cond='data:blog.metaDescription'> <meta expr:content='data:blog.metaDescription' name='twitter:description'/> <b:else/> <meta expr:content='data:post.snippet' name='twitter:description'/> </b:if> <meta expr:content='data:post.sharePostUrl' name='twitter:url'/> <!-- /Twitter Card Tags -->
    Pinterest Rich Pins Tags
    <!-- Pinterest Rich Pins Tags --> <b:loop values="data:post.labels" var="label"> </b:loop> <!-- /Pinterest Rich Pins Tags -->

    Now whenever you share your blog posts to social media, you will see the everything working right.

Discover How to Gain Your Blog Traffic By 209%

Get Free Access

More From Knigulper

Speak Your Mind