
In this article
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
- og:title: the headline of the card. Keep it clear and under about 60 characters, so it is not cut off.
- og:description: one or two sentences, up to about 150 to 200 characters.
- og:image: the picture. This is the biggest factor in whether people click.
- og:url: the main address of the page. Use the same address as your canonical tag; see duplicate content and canonical tags.
- og:type:
websitefor most pages,articlefor posts. - twitter:card: set to
summary_large_imagefor a big preview on X. X falls back to your Open Graph tags for the rest.
Choosing the right image
- Size: 1200 × 630 pixels, a 1.91:1 ratio, works well on every major platform.
- File: JPG or PNG under about 1 MB, on a full
https://address. See how to optimise website images. - Content: keep the key text and logo in the centre, because some apps crop the edges.
- Uniqueness: give each important page or post its own image. A single logo on every page looks repetitive.
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
- SEO plugin or platform setting: most tools have a "social" tab for each page, plus a default image for the whole site.
- Theme template: insert the tags so the title, description and image are filled in from each page automatically.
- Manual: paste the tags into the head for single pages.
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
- No image appears: the address is wrong, uses
http://, or the file is blocked. Check it with the HTTP header checker and make sure robots.txt does not block the image folder. - Wrong title or image: two plugins are both adding tags. Keep one.
- Image too small: the card shrinks to a tiny thumbnail. Use at least 600 pixels wide, ideally 1200.
- Page behind a login or redirect: the crawler cannot reach it. Check the final address with the redirect checker.
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
- On-page SEO checker: Score a page and preview its Google snippet.
- HTTP status and header viewer: Status code, response headers, redirects, compression and caching.
- Redirect checker: Trace every hop of up to 10 URLs.
