Are you questioning how one can make your content material extra clickable, shareable, and noticeable on social media?

Open Graph meta tags are the answer.

Right here’s how one of our posts appears to be like when shared on FB with Open Graph meta tags:

Screenshot 2020 01 06 at 20.55.25 1

And right here’s the way it appears to be like without:

merged fb magic 1

What are Open Graph meta tags?

Open Graph meta tags are snippets of code that manage how URLs are displayed when shared on social media. 

They’re a part of FB’s Open Graph protocol and are additionally utilized by different social media websites, together with LinkedIn and Twitter (if Twitter Playing cards are absent).

You will discover them within the <head> part of a webpage. Any tags with og: earlier than a property identified are Open Graph tags.

Listed below are some examples from our guide to becoming an SEO expert:<meta property=” of title” content material=”Easy methods to Turn out to be a search engine optimization Knowledgeable (8 Steps)” /> <meta property=” of description” content material=”Get from search engine optimization beginner to search engine optimization professional in 8 easy steps.” /> <meta property=”og:picture” content material=”” />

That is how these tags look on FB:

og tags 1

Why are Open Graph tags necessary?

Individuals are arguably extra prone to see and click on shared content material with optimized OG tags, which implies extra social media site visitors to your website.

There are three causes for this:

  1. They make content material extra eye-catching in social media feeds.
  2. They inform individuals what the content material is about at a look.
  3. They assist Fb perceive what the content material is about, which will help improve your model visibility by search.

Let’s contact extra on that final level because it tends to get ignored.

Listed below are the outcomes of a FB seek for “different search engines like Google”:

IMG 0522 1

It brings up widespread articles that folks have already shared on FB. Every title and picture comes from Open Graph tags.

Even when there aren’t any articles returned for the search, FB nonetheless exhibits matching content material shared in teams or pages you observe, or by buddies.

Open Graph tags additionally assist create a snippet when somebody sends you a hyperlink by direct messages utilizing apps that help the Open Graph protocol—naturally FB’s Messenger and WhatsApp but in addition iMessage and Slack.

Which Open Graph tags must you use?

FB lists 17 OG tags of their official documentation, plus dozens of object sorts. We’re not going to debate all of those. Solely 4 are required for FB to grasp the fundamentals of your web page, and there are a few others that generally assist.

Let’s undergo these.

of: title

The title of your web page.


<meta property=” of: title” content material=”Open Graph Meta Tags: Every part You Have to Know” />

Finest practices

  • Add it to all “shareable” pages.
  • Give attention to accuracy, worth, and clickability.
  • Maintain it brief to stop the overflow. There’s no official steerage on this, however, 40 characters for cellular and 60 for desktop is roughly the candy spot.
  • Use the uncooked title. Don’t embrace branding (e.g., your website identity).

of: URL

The URL of the content material.


<meta property=”og:URL” content material=”” />

Finest practices

  • Use the canonical URL. It helps consolidate all related knowledge, equivalent to likes, throughout all of the duplicate URLs posted.

of: picture

The URL of a picture for the social snippet. 

Notice that that is maybe essentially the most important Open Graph tag as a result of it occupies essentially the most social feed actual property.


<meta property=”og:picture” content material=”” />

Finest practices

  • Use customized pictures for “shareable” pages (e.g., homepage, articles, and so on.)
  • Use your emblem or another branded picture for the remainder of your pages.
  • Use pictures with a 1.91:1 ratio and minimum recommended dimensions of 1200×630 for optimum readability throughout all units.

of: kind

The kind of object you’re sharing. (e.g., article, website, and so on.)


<meta property=”og:kind” content material=”article” />

Finest practices

  • Use article for articles and website for the remainder of your pages.
  • Describe object sorts further in the place applicable (non-compulsory).

of: description

A quick description of the content material. 


<meta property=” of description” content material=”Study 13 options that set Ahrefs other than the competitors.” />

Finest practices

  • Complement the title to make the snippet as interesting and click-worthy as potential.
  • Copy your meta description right here if it makes sense. 
  • Maintain it brief and candy. FB recommends 2-4 sentences, however, that usually truncates.

of: locale

Defines the content material language.


<meta property=”og:locale” content material=”en_GB” />

Finest practices

  • Use just for content material not written in American English (en_US). FB assumes content material without this tag is written in this language.

Easy methods to arrange Open Graph tags

Select your website platform from the record beneath, or observe these manual instructions.

Setting Open Graph tags in WordPress

Set up Yoast’s SEO plugin. Go to the editor for a publish or web page, then scroll down. It is best to see a Yoast search engine optimization field. Hit the “Social” tab, then “Fb.”

Fill this in to set the og:titleog:description, and og:picture tags.

There’s no must set og:url manually. Yoast does this for you. It additionally provides different helpful OG tags like picture dimensions.

Should you not arrange an OG picture and the publisher has a featured picture, Yoast will use that by default. It should additionally add different Open Graph and Twitter Card tags that may be only a waste of time establishing manually—website identification, picture dimensions, and so on. 

It’s additionally the greatest apply to set a sitewide og:picture tag. That is proven when no customized tag is about for a shared URL.

You’ll discover the choice to do that in Yoast’s settings.

Yoast > Social > Fb

Be sure the toggle is about to be “Enabled,” then add an applicable picture. Model pictures work the greatest right here.

Screenshot 2019 12 17 at 22 37 47 1

Setting Open Graph tags in Shopify

Most Shopify themes pull OG tags from variables equivalent to your title tag for og:title and featured picture for og:picture.

The sole tag you possibly can customise by Shopify’s UI is a sitewide og:picture.

Go to On-line Retailer > Themes > Customise > Theme settings > Customise > Social media > choose an applicable picture.

If you wish to see the way it’s arranged, go to On-line Retailer > Themes > Actions > Edit code > Snippets > social-meta-tags. liquid within the scrollbar. You possibly can edit the code if you happen to want to.

Setting Open Graph tags in Wix

Wix pulls frequent OG tags from different variables, just like the web page’s meta title and outline.

You possibly can customize the OG title, description, and pictures for every web page within the “Social share” settings.

You can too set a customized sitewide OG picture. Go to Settings > Social Share on the principal menu.

In total, Wix makes including OG tags straightforward, as there’s no must hardcode something.

Setting Open Graph tags in Squarespace

Squarespace makes use of the web page title and meta description for og:title and og:description.

You possibly can set a customized og:picture on a web page by web page foundation. 

Simply go to Web page Settings > Social Picture > Add.

If you should add different OG tags and customize the default settings, go to Web page Settings > Superior > Web page Header Code Injection. Learn the next part on including the tags manually and copy-paste the code there.

Setting Open Graph tags manually

Should you’re comfy digging into website code, including OG tags is as simple as pasting them into the <head> part of your net web page.

Think about using a markup generator instrument like Mega Tags or Web Code Tools to assist cut back syntax errors.

Easy methods to take a look at and debug Open Graph tags

Now that you have deployed all of the tags, you should be sure they’re working as anticipated and are prepared for sharing.

For that, use these instruments:

All of them work identically. They pull tags from the web page and present the way it appears to be when shared.

Testing additionally helps stop issues in the place where OG tags aren’t displayed or pulled accurately.

Use og:picture:width and og:picture:peak tags to make sure an ideal snippet is the primary time somebody shares it. In WordPress, Yoast provides them robotically. That is their syntax:<meta property=”og:picture:width” content material=”1200″ /> <meta property=”og:picture:peak” content material=”630″ />

Right here’s what the FB Sharing Debugger appears to be like like in motion:

Screenshot 2019 12 17 at 23.31.50 1

A very powerful factor is how the snippet appears to be like. Should you miss or incorrectly arrange much less necessary tags, it’s not a giant deal. You possibly can ignore warnings about unimportant tags like fb:app_id

If one thing appears to be amiss and also you replace the tags, use the “Scrape Once more” button to tug recent knowledge. Should you not see the change after the crawl, use the Batch Invalidator to clear the cache and repeat.

Repeat this course with the Twitter Card Validator and LinkedIn Publish Inspector to make sure that your content material appears to be as meant throughout all networks.

 I’ve discovered that solely Twitterbot follows robots.txt directives. Each FB and LinkedIn crawler can scrape and present the content material even if you happen to disallow crawling. This was shocking, however even only for the sake of Twitter, make it possible for all of the URLs you share could be crawled. 

Easy methods to audit Open Graph tags

If you have already got a website with tons of pages and aren’t positive which have already got Open Graph tags, you need to use an instrument like Ahrefs’ Site Audit to examine your pages in bulk. 

Simply run a crawl, then go to the Social tags report back to see all points associated with Open Graph and Twitter Card tags.

Screenshot 2020 01 12 at 23.16.01 1

Click on a flagged warning to see the reason and recommendation on how one can repair it.

Screenshot 2019 12 18 at 00.39.44 1

Click on “View affected URLs,” and also you’ll see the problem(s) affecting every URL together with related metrics. A kind of metric is natural site visitors, which you need to use to type the desk and prioritize URLs to repair. 

Screenshot 2020 01 12 at 23 19 24 1

Keep in mind, that pages that get numerous site visitors are most certainly to be shared.

Ultimate ideas

OG tags are necessary for your social media presence, however, there’s no want to spend so much time on them. 

Give attention to getting the fundamentals down. Add tags, examine social media previews, and debug. 

Comments to: Open Graph Meta Tags: Everything You Need to Know 2024

Your email address will not be published. Required fields are marked *