How to Preview Open Graph Tags Before You Share

You share a link on Facebook or X and the preview card shows the wrong image, a cut-off title, or no image at all. That is an Open Graph problem — and it is embarrassing, because the fix takes two minutes. This guide shows you how to preview your OG tags as a real social card before you share, and what to do when the preview is wrong.

What Open Graph tags do

Title, description, image and URL

Open Graph tags are meta tags that tell social platforms what to show when your link is shared: the title, the description, the image, and the URL. They live in the head of your page, and platforms read them the moment someone pastes your link. Without them, Facebook and X guess — and they usually guess badly, picking a random image or showing no image at all.

X falls back to Open Graph

X, formerly Twitter, also reads its own twitter:card tags, but it falls back to Open Graph tags when they are missing. In practice, a solid set of OG tags plus one twitter:card tag covers every major platform.

The tags every page needs

Five tags cover it

Five tags cover it. og:title is the card headline — keep it near 60 characters so it does not truncate. og:description is the short paragraph under it, around 150 to 200 characters. og:image is the preview image: 1200 by 630 pixels is the standard, and anything under 200 by 200 is ignored. og:url is the canonical URL of the page. og:type is usually website for a homepage or tool, and article for a blog post.

The image URL must be absolute

One rule matters more than the rest: the image URL must be absolute, starting with https://. A relative path like /images/card.png works on your own site but breaks when a platform tries to fetch it from somewhere else. Add twitter:card with the value summary_large_image to get the large image card on X.

Preview your Open Graph tags in five steps

  1. Fill in your OG values. Title, description, image URL and page URL — the four values that make up the card. Use the real text and the real image you plan to publish with, not placeholders.
  2. Preview the Facebook and X cards. The Open Graph Preview Tool renders mock cards in both styles from the values you enter, so you can see the image crop, the title truncation and the description length before anything goes live.
  3. Fix what looks wrong. Image too small or the wrong ratio? Resize it to 1200 by 630. Title truncated? Shorten it. No image at all? Check the URL is absolute, public, and not blocked by your robots.txt or hotlink protection.
  4. Add the tags to your page. The meta tags go in the head section. WordPress SEO plugins manage OG tags in their social settings; on a static site, paste the tags directly into the HTML. The preview tool shows you the exact tags to copy.
  5. Validate with the platform debuggers. The Facebook Sharing Debugger and the X Card Validator fetch your live page and show the real card. Use the Scrape Again button after fixing your tags — both platforms cache previews, and the cache is the usual reason a fix does not seem to work.

Why your preview shows the wrong image

The most common cause is caching: the platform fetched your link once, stored the preview, and keeps showing it. Clear it with the platform debugger and re-scrape. The second cause is a relative or blocked image URL — check that the image loads when you open its URL in a private browser window.

Other causes: an image smaller than 200 by 200 pixels, which platforms ignore; several og:image tags on the same page, where the first usually wins; and a page behind a login, which no platform can fetch. Work through that list and the problem is almost always one of them.

Open Graph image tips

Use 1200 by 630 pixels, a 1.91 to 1 ratio, which fills the large card on Facebook and X without cropping. Keep key text in the centre of the image, because platforms crop slightly at the edges. Keep the file under 8 MB — Facebook's limit — and ideally under 300 KB so it loads fast.

Use JPG for photographs and PNG for graphics with text, where JPG compression makes letters fuzzy. And design the image for the card, not for your page: a wide banner with a short headline reads far better at card size than a screenshot of your homepage.

Related guides

Questions people ask

What is the best Open Graph image size?

1200 by 630 pixels, a 1.91 to 1 ratio. It fills the large card on Facebook and X without cropping. Keep important text away from the edges, since platforms crop slightly.

Why is my link preview not updating?

Social platforms cache link previews. After you fix your tags, use the Facebook Sharing Debugger or X Card Validator to re-scrape the URL and clear the cache.

Do I need separate Twitter Card tags?

Not strictly. X falls back to Open Graph tags, so og:title, og:description and og:image are enough. Adding twitter:card with summary_large_image gives you the large image card explicitly.

Can I preview a link without publishing the page?

Yes. A preview tool renders the card from the values you enter, so you can check the design before the page is live. The platform debuggers need a public URL.