What Is Open Graph?
Open Graph tags are snippets of code you add to your webpages that outline how your content material seems when customers share it on sure social media websites.
OG meta tags belong to the Open Graph protocol, which Fb created to standardize how metadata is pulled from webpages and displayed in its feed.
For instance, take this weblog submit shared on Fb with an Open Graph picture tag:

In contrast with this submit with out the OG picture tag:

The primary submit is extra visually interesting and gives additional particulars concerning the shared content material.
OG tags provide you with extra management over how your content material appears to be like when shared on websites like Fb, LinkedIn, X (previously Twitter), and Pinterest.
They go within the header part of your webpages. Like this:

We’ll cowl how you can add them later on this article.
Why Are Open Graph Meta Tags Necessary?
Open Graph meta tags create interesting and informative previews of your pages, which may enhance social media metrics like engagements, impressions, and reactions.
A 2024 INMA examine confirmed that Fb posts with pictures had 100% extra engagement and 114% extra impressions than posts with out pictures.
Different Open Graph tag advantages could embrace:
- Larger click-through charge (CTR): Hyperlink previews are extra attractive to click on on, which may result in extra referral site visitors to your web site
- Extra shares: Persons are extra more likely to share content material with hyperlink previews
- Stronger branding: Enriched previews assist keep model voice and consistency throughout social platforms
- Skilled look: Lacking tags could make your model seem uncared for
- Oblique web optimization advantages: Extra clicks and shares can generate backlinks and consumer interactions that profit web optimization
Open Graph Varieties: Required & Non-obligatory Tags
Open Graph tags enrich how social media platforms show your web page previews. Some tags are required. Others are optionally available. This part gives customary code snippets, greatest practices, and examples.
Required Tags
The under tags have to be current for social media websites utilizing the Open Graph Protocol to show enriched previews.
og:title
The og:title tag specifies a title on your content material and exhibits customers what your web page is about.
Greatest Practices:
- Match the webpage’s content material
- Encourage clicks with descriptive textual content
- Maintain titles between 55-60 characters to keep away from truncation
- Use title case or sentence case, however keep away from all caps
Instance:
og:picture
og:picture provides a picture to your preview that takes up loads of visible area, which may enhance clicks.
Greatest Practices:
- Use pictures at 1200 x 630 pixels for many social media platforms
- Use JPEG or PNG codecs
- Guarantee your OG social picture matches your web page content material
- Use high-resolution pictures
Instance:
og:url
og:url is the uniform useful resource locator (URL) of your web page and tells social media websites the place to tug the content material from.
Greatest Practices:
- Use an actual URL.
- Use the canonical URL for any duplicates, which ensures the social media web site can entry the fitting metaproperties, even when different variations of the web page are shared
Instance:
og:sort
og:sort describes the kind of content material and will match one of many following object sort values:
- Web site
- Article
- E-book
- Profile
- Video
- Music
Greatest Practices:
- Select an OG sort that matches the web page’s content material. When you’ve got a number of content material sorts (e.g., a weblog submit with pictures and movies), select the first one
- Use the proper corresponding object sort worth
Instance:
Non-obligatory Tags
These tags will not be required, however they will enhance how social media websites show your content material.
og:description
The og:description tag gives a short abstract of your content material to inspire clicks.
Greatest Practices:
- Maintain your descriptions concise, correct, and attractive
- Use fewer than 120 characters to stop truncation
- Keep away from repeating the og:title
Instance:
og:site_name
The og:site_name tag lists the location, enterprise, or model related to the content material.
Greatest Practices:
- Confirm spelling and match your branding
- Keep away from repeating your model identify if it seems within the og:title
Instance:
og:locale
The og:locale tag specifies your content material’s language and nation so social media websites can categorize it.
Greatest Practices:
- Use the proper language and nation code
- Affirm the proper order (i.e., language_country)
- Use og:native:alternate for added areas or languages
Instance:
The best way to Set Up OG Tags
Right here’s how you can add Open Graph tags on a couple of widespread content material administration techniques.
In WordPress
In WordPress, you possibly can add Open Graph tags via varied plugins, however we suggest Yoast web optimization.
To entry and use the plugin for Open Graph, observe these steps:
- Log in to your WordPress account
- Navigate to “Plugins” and seek for “Yoast web optimization” (the Premium model is required)
- Set up and activate the plugin
- Navigate to “Yoast web optimization” > “Settings”
- Slide the toggle beneath the Open Graph function to allow it
- Use the “Social” tab within the plugin to customise tags on particular person pages

In Wix
Wix provides Open Graph tags to your pages by default primarily based in your web site’s knowledge and Open Graph greatest practices.
To customise them, observe these steps:
- Log in to your Wix account
- Go to “Search Engine Optimization (web optimization)” in your dashboard
- Click on on “web optimization Settings”
- Choose the web page sort you wish to edit (i.e., Weblog submit, Product web page, and so forth.)
- Click on “Edit” subsequent to “web optimization fundamentals & social share”
- Scroll all the way down to “Social share” and apply your customized tags

In Squarespace
Squarespace provides important OG sorts, however you possibly can customise them on a per-page foundation.
Right here’s how:
- Log in to your Squarespace account
- Hover over the web page to edit and click on on the gear icon subsequent to “Menu”
- Click on “Superior”
- Copy and paste your OG tags into “Web page Header Code Injection”
- Click on “Save”

The best way to Examine Your OG Meta Tags
For Fb
Use Fb’s Sharing Debugger software to check your OG tags.
Insert the web page URL and click on “Debug.” Any points will seem below “Warnings That Ought to Be Fastened.”

Scroll to the “Hyperlink Preview” part to see how your submit will look.

For LinkedIn
Use LinkedIn’s Publish Inspector to test your OG tags.
Enter your web page URL and click on “Examine.” Overview the hyperlink preview and if something is lacking or may be improved.

For X
X now not gives a hyperlink preview in its card validator, so use the Tweet Composer to test how your content material will seem.

Audit Your Open Graph Tags
Use Website Audit to substantiate that your OG tags are current and accurately arrange.
To test which pages in your web site have OG tags, run a web site audit. Then, click on “View particulars” below the “Markup” report.

Discover the “Pages by Markup Kind” part and search for “Open graph.” The blue quantity exhibits what number of pages have OG tags. Click on to see the total record.

Click on “# sorts” within the “Markup” column to see whether or not you’ve accurately applied Open Graph meta tags by way of a inexperienced test mark.
