What are Open Graph tags and how do they improve your social media sharing?
Open Graph tags, also called OG tags, are small snippets of HTML code that tell social media platforms what to display when someone shares your website link. Without them, Facebook, LinkedIn, X, WhatsApp and other platforms guess what image, title and description to show. Sometimes they guess correctly. Often they do not.
If you have ever shared a link and seen a blank image, the wrong headline or a broken description, the fix is almost always missing or incorrect Open Graph tags.
What are Open Graph tags?
Open Graph was introduced by Facebook in 2010 as a standard protocol for any web page to become a rich object in a social graph. Today every major platform supports it. The tags sit inside the <head> section of your webpage and start with og:.
The four most important OG tags are:
og:title controls the headline that appears in the social post. Keep it under 60 characters to avoid truncation on most platforms.
og:description sets the text below the headline. Aim for 120 to 160 characters so the full message shows without being cut off.
og:image provides the URL of the image you want displayed. Use an image that is at least 1200 by 630 pixels and under 5 MB. If this tag is missing or points to a broken URL, the platform shows nothing or grabs a random image from your page.
og:url tells the platform which URL to link to. This should always be the canonical URL of the page, not a UTM-tracked version or a shortened link.
There are many others og:type, og:site_name, og:locale but these four cover 90 per cent of what a small business needs.
How to add Open Graph tags to your website
If you use a content management system like WordPress, Shopify, Squarespace or Wix, Open Graph tags are usually added by an SEO plugin or built into the platform settings.
In WordPress the Yoast SEO or Rank Math plugin adds OG tags automatically based on your SEO title and meta description. You can also install a dedicated Open Graph plugin or edit the header.php file directly if you are comfortable with code.
On Shopify Open Graph tags are generated automatically from the product or page title, description and featured image. You can customise them in the theme.liquid file.
For a custom-built site your developer adds the tags to the <head> section of each page template. The code looks like this:
<meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="Your page description goes here." /> <meta property="og:image" content="https://www.yoursite.com/image.jpg" /> <meta property="og:url" content="https://www.yoursite.com/page/" />
Why Open Graph tags matter for your business
Every time someone shares your content on social media or a messaging app, that share is free advertising. A well-presented link with a strong image, clear headline and useful description gets more clicks than a bare URL or a broken preview.
LinkedIn posts with Open Graph tags showing the correct image and description generate higher engagement rates. WhatsApp shares with a proper preview stand out in crowded group chats. Facebook and Instagram links with complete OG data are more likely to be clicked and reshared.
Open Graph tags also help with brand consistency. Every share of your content should look like it belongs to your business, not like a random link with no context.
Common Open Graph mistakes
Missing og:image tag. This is the most common error and the reason links appear with no image at all. Without an explicit image tag, platforms scan the page content for the first suitable image and often fail.
Image too small. Facebook recommends 1200 by 630 pixels. Images smaller than 600 by 315 pixels are rejected and the post appears without a picture.
og:title too long. Titles over 60 characters are truncated, sometimes cutting off the key message.
Mismatched og:url. If the OG URL points to a different page than the shared link, the preview may show wrong content or confuse the platform cache.
Not testing before publishing. Facebook, LinkedIn and X each have a debugger tool that shows how your page will look when shared. Type your URL into the Facebook Sharing Debugger, the LinkedIn Post Inspector or X Card Validator before you publish and fix any missing tags.
Getting Open Graph tags right is a small technical fix with an outsized effect on how your content performs when it leaves your website.
If you would like help auditing your website for missing Open Graph tags and other SEO fundamentals, see the SEO packages and pricing at https://victory.digital/seo-packages, or start with a free SEO report at https://victory.digital/run-a-seo-report.
What are your Feelings?
Share your reaction
Click a reaction to share how useful this article was.
