← All guides

Guide

Open Graph Testing Checklist: What to Check Before Launch and After Every Change

An ordered checklist for testing Open Graph tags and card images: the served HTML, absolute URLs, the image response, robots.txt and auth walls, size limits, Twitter tags, each platform's debugger and cache refresh, and what properOG's checker and audit report.

How to use this checklist

Link previews fail in a few places, in a fixed order. The tags are wrong or missing in the HTML a crawler receives. The image does not answer a crawler the way it answers your browser. The crawler is turned away before it reads either. The card breaks a size rule. Or everything is right and a platform shows a copy it stored earlier. Testing in that order finds the cause fastest, because each stage rules out the ones above it.

Run the stages top to bottom before a launch, and again after anything that touches tags, templates, images, hosting or bot protection. Each stage links the guide that explains a failure: this page is the map, those guides are the detail. Stages 1 to 4 need only curl.

  1. Read the HTML a crawler is served.
  2. Check the tags.
  3. Check that the image answers.
  4. Check that the crawlers can get in.
  5. Check the size against each platform's limits.
  6. Run the properOG checker and site audit.
  7. Ask each platform, and refresh its copy.

Where this page says what a platform does, that platform's guide holds the source. For the tags themselves, What is Open Graph is the short introduction, and the complete guide to Open Graph tags covers each property in full.

Stage 1: read the HTML a crawler is served

A browser's inspector shows the document after scripts ran, for a person. A link preview is built from the response a crawler gets to a plain request, and the two can differ. Request the page the way a crawler does and print the tags:

curl -s --compressed -A 'facebookexternalhit/1.1' https://your-site.com/your-page \
  | grep -oE '<meta (property|name)="(og|twitter):[^"]*" content="[^"]*"'
  • Tags written by JavaScript do not exist. Apple's talk on rich links says "JavaScript does not run when creating rich links, so the Open Graph tags need to be in the source of the page". Meta's WhatsApp page describes a crawl by HTTP GET, and says nothing of running scripts. Treat the served HTML as the only input. See the iMessage and WhatsApp guides.
  • Some frameworks send the tags late to ordinary clients. In Next.js 15.2 and later, async generateMetadata on a dynamic route is streamed after the head for clients not recognised as bots, so a bare curl can show no tags where a crawler sees them. Send a crawler user agent and test one page per template. See the Next.js guide.
  • A cached page serves yesterday's tags. If the output is old, purge the page first.
  • Follow the redirects. Add -L. Meta says Facebook uses the details at the final link in the redirect chain.

The grep pattern expects property or name before content, so a theme that orders the attributes the other way prints nothing. If the output is empty, read the raw HTML before you conclude the tags are missing. properOG also reads the served HTML and runs no scripts: when it cannot find the metadata at all, the audit reports page_unread.

Stage 2: check the tags

With the served head in front of you, check these in order. A head that passes all of them looks like this:

<meta property="og:title" content="Your page title" />
<meta property="og:description" content="One or two sentences." />
<meta property="og:url" content="https://your-site.com/your-page" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://your-site.com/og/your-page-v2.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="What the card shows" />
<meta name="twitter:card" content="summary_large_image" />
  1. The required set is present. The Open Graph protocol at ogp.me lists four required properties: og:title, og:type, og:image and og:url. LinkedIn's Help Center asks for og:title, og:image, og:description and og:url. Meta's WhatsApp page asks for og:title, og:description and og:url, in the head and not empty. Ship all five and every list is covered.
  2. Exactly one og:image. A theme default beside a plugin's tag, or a layout tag beside a page tag, put two in the head. The Facebook, LinkedIn and Slack pages do not say which one wins. The WordPress guide covers the two-writers case.
  3. Every URL is absolute. og:image and og:url should start with https:// and a host. Meta's WhatsApp page requires an absolute image URL, and Meta says og:url must be absolute and undecorated, without session variables or counters. properOG resolves a relative og:image against the page and upgrades http:// to https:// before it probes the image, so a relative or plain-http value passes there while a crawler may not follow it. Read these two tags with your own eyes.
  4. og:url is this page's own address. A template that hardcodes the homepage here makes every page one resource to Facebook. properOG does not check og:url, so only this stage catches it. See the Facebook guide.
  5. The Twitter tags are deliberate. X falls back from twitter:title, twitter:description and twitter:image to their Open Graph counterparts, but twitter:card has no fallback, and without it X may render the small summary card. Set twitter:card to summary_large_image. Declare twitter:image only when X needs a different picture, and then per page. The X card guide has the sources.
  6. The tags sit early in the document. Meta says Open Graph properties must be listed before the first 1 MB of the page or they are cut off, and that WhatsApp expects the head within the first 300 KB. Print where yours start:
    curl -s --compressed -A 'facebookexternalhit/1.1' https://your-site.com/your-page \
      | grep -b -o -i -E '<meta property="og:(title|description|url|image)"'
    Each match shows its byte offset. In a normal head they are in the first few kilobytes.
  7. Title and description fit. properOG passes an og:title of 20 to 70 characters and an og:description of 50 to 160. Those are properOG's thresholds, not platform rules. It does not score og:image:alt, so add it by habit.

If the tags are wrong at the source, fix them where your site produces them: the guides for Next.js, WordPress, Shopify, Webflow, Squarespace, Wix, Framer, Ghost and HubSpot each trace one system's output.

Stage 3: check that the image answers

A correct tag pointing at a file the crawler cannot fetch gives a blank card, and the head looks perfect. Request the URL from your og:image tag:

curl -s -o /dev/null -A 'facebookexternalhit/1.1' \
  -w '%{http_code} %{content_type} %{size_download} bytes, final URL %{url_effective}\n' \
  -L https://your-site.com/og/your-page-v2.png

Read the one line it prints.

  • Status 200 after the redirects. A 404, a 403, or a 200 on a login page is a broken card for a crawler. properOG calls a card broken when it answers 404 or 410, when the content type is not an image, or when the file is empty. It calls a 403, a 429 or a 5xx undetermined, because a real crawler may be served the image where properOG is not.
  • A content type that starts with image/, and a size you expect. An HTML error page served with a 200 is the usual surprise. Zero bytes is an empty file, and megabytes is a risk on every platform.
  • A public, stable URL. No cookie, login or expiring signature. LinkedIn's Help Center names a protected directory as a cause of a missing image, and Meta says its crawler must be able to reach it.
  • An answer in a few seconds. Meta says its crawler must read the content within a few seconds, and a card rendered on a cold function can miss that on the crawler's first request. Cache the image: properOG's image_uncacheable finding flags a card whose response forbids caching.
  • PNG or JPEG. Meta documents og:image:type as image/jpeg, image/gif or image/png, and X lists JPG, PNG, WEBP and GIF and not SVG. properOG's Image format check scores WebP and AVIF highest but passes PNG and JPEG with a note. For a card every platform must draw, PNG or JPEG is the safe choice.

The command uses a normal GET, since some servers answer HEAD badly. If it fails for a crawler user agent and passes for a plain one, go to stage 4.

Stage 4: check that the crawlers can get in

The crawler reads the response it is given, not the one you get. Request the page once as each fetcher the platform guides document:

for ua in \
  'facebookexternalhit/1.1' \
  'Twitterbot/1.0' \
  'Slackbot-LinkExpanding 1.0 (+https://api.slack.com/robots)' \
  'LinkedInBot/1.0' \
  'WhatsApp/2.23.20.0 A'; do
  printf '%s -> ' "$ua"
  curl -s --compressed -L -o /dev/null -A "$ua" \
    -w '%{http_code} %{content_type} %{size_download} bytes, %{time_total}s\n' \
    https://your-site.com/your-page
done

Every line should show the same status, a text/html type, similar sizes and a fast answer. A line that differs is a rule on your side. The WhatsApp version number is a placeholder, and LinkedIn's string is the one third-party sources report.

Then the causes this loop can miss:

  • robots.txt. The platforms differ, so do not use robots.txt as your test. X's crawler respects it, and a block on the page or the image means no card or no thumbnail, so allow Twitterbot by name if you disallow bots generally. Meta says facebookexternalhit may bypass robots.txt for security or integrity checks. Slack's robots page says Slack does not currently honour it for link previews. The pages I relied on for LinkedIn, WhatsApp and Apple do not say. Check the image path too: a rule on the folder that serves the card blocks the image.
  • Firewalls and bot protection. A rule that filters by address treats your curl differently from the real crawler, so a pass above does not clear it. Find the crawler's requests in your access logs and read what you answered.
  • Auth walls, consent walls and redirects. A staging password, a members area, an age gate, a "checking your browser" page or a cookie banner that replaces the page returns the gate, and the preview describes the gate. A geo or language redirect does the same: WhatsApp sends an Accept-Language header, so a site that picks tags by language can show it a different page from the one you tested.
  • The response is too big. X's documentation gives 2 MB for the page. See the X card guide.

properOG's user agent contains ProperOGBot and the facebookexternalhit token. A site that serves it a wall shows up as page_unread or image_unverified, which means the audit could not tell, not that the card is broken. It cannot see a block aimed at one other bot, so the loop above is the test for that. The LinkedIn and Slack guides go through their crawlers in detail.

Stage 5: check the size against each platform's limits

Aim at 1200 by 630 pixels, a PNG or JPEG, under 500 KB. These are the limits each platform guide proves from its source, and where a platform publishes none.

  • Facebook: 200 by 200 minimum, a small square card under 600 by 315, 1200 by 630 recommended, under 8 MB. See the Facebook guide.
  • LinkedIn: under 5 MB, a stated minimum of 1200 by 627, a thumbnail under 401 pixels wide. See the LinkedIn guide.
  • X: 2:1 on the large card, 300 by 157 minimum, under 5 MB, 1:1 on the small card. A 1200 by 630 card is close to 2:1, not exact, so look at it in the composer. See the X card guide.
  • WhatsApp: under 600 KB, at least 300 pixels wide, a ratio of 4:1 or less, head within the first 300 KB. See the WhatsApp guide.
  • iMessage: icon, image and video together under 10 MB, no stated pixel size, and Apple advises against text in the image. See the iMessage guide.
  • Slack: no size, ratio or file limit published. See the Slack guide.

WhatsApp's 600 KB is the smallest file limit, so a card under properOG's 500 KB line clears them all. The full table is in OG image sizes. For what to put inside the image, see OG image best practices.

Stage 6: run the properOG checker and site audit

properOG does the page-level checks for one URL and the site-level ones across a whole site. Neither can see a platform's stored copy, so neither replaces stage 7.

The checker, for one URL

The checker fetches the page, probes the image, and scores what it finds out of 100. The checks and their weights are these.

  • OG Image (25): the tag exists. A separate Image loads row fails when the image does not resolve, and a card that does not load zeroes every image-dependent check, which leaves a D whatever the text says.
  • Dimensions (30): full marks from 1200 by 630 up to 2400 by 1260 at about 1.91:1. At least 600 by 315 is acceptable and scores less.
  • File size (15): a pass under 500 KB, a warning under 1 MB, a fail above.
  • Title (10), Description (7), og:type (3), Twitter card (5), Image format (5).

Grades come from the total: A at 85 and above ("Proper"), B at 65 ("Almost"), C at 45 ("Needs work"), D below. The platform previews are a model of each card, not a capture of the platform. Open the checker prefilled with /check?url=https://your-site.com/your-page. A clean result is not a clean bill: it does not read og:url, test one crawler's access, or know what a platform stored.

The site audit, for every template

The site audit reads your sitemap, groups URLs into templates, samples across them (10 pages signed out, 20 signed in, 50 after a purchase), crawls briefly from the entry page for routes the sitemap forgot, and reports findings with a fix for each. Where each finding sends you:

  • image_missing (critical): a page declares no og:image. Stage 2, then the guide for your platform.
  • image_broken (critical): the card is declared and does not resolve. Stage 3.
  • image_unverified (warning): the audit could not tell, usually because your host refuses automated requests. Stage 4.
  • page_unread (warning): the page's metadata could not be read at all. Stages 1 and 4.
  • sitemap_orphan (warning): pages the crawl reached that no sitemap lists.
  • image_shared (warning): one image across different templates. See OG image best practices.
  • twitter_card_small (warning): a card type other than summary_large_image. See the X card guide.
  • twitter_title_generic, twitter_image_stale and twitter_image_shared (warnings): a twitter: tag that contradicts the page's own Open Graph tags. See the Next.js guide and the X card guide.
  • image_oversized (warning): the card is over 500 KB. Stage 3.
  • image_uncacheable (warning): nothing in front of your origin caches the card. Stage 3.
  • image_undersized (info): the card is under 1200 pixels wide. Stage 5.

Stage 7: ask each platform, and refresh its copy

Your page can be right and a platform can still show an older copy. For each platform you share on, in this order: fix and deploy, move a changed card to a new image URL, then use the platform's own tool. Each guide has the steps and the sources.

  • Facebook. The Sharing Debugger (login required) shows what was scraped and forces a fresh scrape. Meta says links refresh automatically every 30 days and images are cached by URL. See the Facebook guide.
  • LinkedIn. Post Inspector (login required) visits the page and shows the extracted values and when they were last updated. No cache lifetime is published. See the LinkedIn guide.
  • X. The Card Validator's preview was removed in 2022, so paste the link into the post composer without posting. X's archived documentation says cards are cached for 7 days and images by URL. See the X card guide.
  • Slack. The Unfurl Debugger needs a workspace sign-in. Responses are cached globally for around 30 minutes, and a link shared in the same conversation within the past hour does not expand again. See the Slack guide.
  • WhatsApp. No debugger and no documented cache. Send a URL that has not been sent before to a chat only you are in. See the WhatsApp guide.
  • iMessage. No debugger, and Apple publishes no lifetime or purge. Send the link in a new message. See the iMessage guide.

Two rules cover most refresh problems. A new image URL beats every other trick, because platforms that cache images by URL have no reason to look again at a file overwritten in place. And an existing post keeps the card it was made with, so test on a new share.

After a change, run this short version

Use the full list for launches and incidents. After a routine change, five checks catch most regressions:

  1. Print the tags of one page per template (stage 1).
  2. Request the image and read status, content type and size (stage 3).
  3. Run the audit and compare it with the last run (stage 6).
  4. If a card changed, give it a new URL and re-scrape the pages people share (stage 7).
  5. Look at the card in the debugger of the platforms your audience uses.

For what a well-made card looks like, see the gallery and OG image best practices.

Verify your fix

Check the page. Enter the page you fixed in the checker, or check this guide's own card as an example. Confirm the Image loads row passes, the dimensions and file size pass, and the grade is an A or a B.

Check the site. Run the site audit and confirm no critical finding remains. Read the pages listed under any warning.

Check what each platform stored. Use Meta's Sharing Debugger, LinkedIn's Post Inspector, Slack's Unfurl Debugger and the X post composer for the platforms you share on, and a real message for WhatsApp and iMessage. A clean checker result and an old card on a platform means your page is right and the platform has not fetched it again.

Frequently Asked Questions

How do I test my Open Graph tags before I publish?

Request the page with a crawler user agent and read the meta tags in the raw HTML, then request the og:image URL and confirm a 200 status and an image content type. Run the page through a checker such as properOG's, and use each platform's debugger or composer for the final look.

Why does my OG image show in a browser but not when I share the link?

A crawler reads the raw response to its own request, not the page a browser builds. Common causes are tags added by JavaScript, an image URL that returns a login page or an error to bots, a firewall or consent wall that serves crawlers a different page, and a platform showing a copy stored before your fix.

Do Open Graph image URLs have to be absolute?

Use absolute https URLs. Meta's WhatsApp documentation requires an absolute image URL, and Meta says og:url must be absolute. properOG resolves a relative og:image against the page before it checks it, so it will not flag one, while a crawler may fail to follow it.

What should I check first when a link preview is wrong?

Print the tags a crawler is served, then request the image. Those two steps separate a tag problem from an image problem from a blocked crawler. Only when both are right is the cause a platform's stored copy.

Audit your site

Sample pages across every template in your sitemap and see which ones ship the wrong card, or none. Free, no account needed.

Related guides