Blog · 6 min read

Open Graph tags: fix your social sharing previews

Published

Open Graph tags: fix your social sharing previews

When someone shares your page on Facebook, LinkedIn, WhatsApp or X, the platform builds a preview card from a few lines of code in your page. If those lines are missing, the card may show the wrong image, a cut-off title or nothing useful at all. A good preview earns far more clicks than a bare link.

This applies to every platform, whether your site runs on WordPress, Shopify, Wix, Squarespace, Webflow or custom code. Most platforms and SEO plugins can set these tags for you.

What Open Graph tags are

Open Graph is a set of meta tags, started by Facebook and now used almost everywhere, that tell a platform how to display your page when it is shared. They sit in the <head> of the page next to your title and description:

<meta property="og:title" content="Open Graph tags: fix your social sharing previews">
<meta property="og:description" content="Control the title, image and description shown when your page is shared.">
<meta property="og:image" content="https://www.example.com/images/share-card.jpg">
<meta property="og:url" content="https://www.example.com/blog/open-graph-tags">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary_large_image">

The tags that matter

Choosing the right image

Step 1: check what your pages show now

Run a page through the on-page SEO checker to see its title, description and social tags. Then paste the address into Facebook's Sharing Debugger or LinkedIn's Post Inspector to see the real preview and any errors.

Step 2: set the tags

Write the title and description for people. They can differ a little from your search title; see title tags and meta descriptions for the search side.

Step 3: refresh the cache

Platforms remember the first preview they build. After you change a tag or an image, use the Sharing Debugger or Post Inspector to fetch the page again. Otherwise the old card can linger for days.

Step 4: fix the usual problems

Watch out for tampered tags

If a shared link of yours suddenly shows an unfamiliar title, image or description, your tags may have been altered. This is a sign of a hacked page or a plugin problem. Read how to check if your website is hacked and how to find hidden spam links.

Common questions

Do Open Graph tags help SEO?

Not directly. They improve how your page looks when shared, which can bring more clicks and visits, and visits are what you want.

Do I need separate Twitter tags?

Mostly no. Add twitter:card and X will use your Open Graph title, description and image.

Which platforms use Open Graph?

Facebook, LinkedIn, WhatsApp, Telegram, Slack, Discord and many messaging apps all read it.

Why does my old image still show?

The platform cached it. Re-scrape the address in the Sharing Debugger or Post Inspector.

Free tools for this problem

More guides