Platform Guide
Facebook Link Preview Not Updating: How the Crawler Caches and How to Fix It
How Facebook's crawler fetches and caches Open Graph data, why a shared link shows an old, wrong or small image, and the steps that refresh it, based on Meta's own documentation.
How Facebook fetches and caches your link
Facebook does not read your page when someone looks at a post. It reads it once, through its crawler, stores what it found, and serves every later share from that store. Nearly every complaint about a stale or wrong preview is a question about that store: what is in it, and how to make Facebook fetch again.
Meta's documentation describes the pieces like this:
- The first share or like fills the cache. "The first time someone shares or likes a URL, the Facebook Crawler caches the resolved canonical URL and its metadata." The Sharing Debugger can show you that cache or force a re-scrape.
- The crawler is
facebookexternalhit. Meta lists two strings for it:facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)and the shorterfacebookexternalhit/1.1. Meta runs other crawlers too, each with its own purpose. The one that gathers the title, description and thumbnail of a shared link isfacebookexternalhit, so that is the one to allow and to test as. - It refreshes on its own every 30 days. Meta's page on changing link data says the crawler "conserves resources by updating your link metadata automatically every 30 days", and that after a change "it can take as much as 30 days for your link details to update".
- Images are cached separately, by URL. "We cache all images referenced based on each image's URL." An image at a URL Facebook has seen is not fetched again because the file behind it changed.
- A change reaches new shares only. "Once the metadata has been updated, it will be used for all new shares of your link. If you've already shared the link, it will continue to display the old data."
Two practical limits on the fetch itself, also from Meta's crawler page. The crawler has to be able to read your content "within a few seconds". And "any Open Graph properties need to be listed before the first 1 MB of your website or app, or it will be cutoff", so tags pushed below a megabyte of inline script or markup do not exist for Facebook. Your server must also use gzip or deflate encoding, and either honour a Range header or ignore it.
That is the whole debugging model: the crawler fetches with its own user agent, stores the tags and the image by URL, and does not look again until you ask it to, or about 30 days pass. The sections below take the common failures in turn.
Facebook shows the old image after you changed it
Symptom
You replaced the card, the page now serves the new one, and a fresh share on Facebook still shows the old picture.
Cause
Two caches. The metadata cache holds the old og:image URL, and the image cache holds the picture behind each URL it has seen. If you overwrote /og.png in place, the URL did not change. Meta's rule is that images are cached by URL and that a replacement needs a new one ("Use a new URL for the new image"), so nothing tells Facebook the picture is different, even after the metadata is re-scraped.
Fix
Publish the new card at a new URL and point og:image at it, then re-scrape the page (see the step-by-step section). Meta also says to keep the old image in place, because existing posts may still reference it.
For a static file, put a version in the name (/og/pricing-v2.png). For a generated card, change something in its URL whenever its content changes: a content hash, or a version or updated-at value in the query string. A query string makes a different URL, and the cache is keyed on URL. Meta's docs do not spell out whether the query is part of the key, so confirm it on your own page: after a re-scrape the debugger should show the new picture.
Detected by
properOG cannot see Facebook's cache, so it cannot tell you a card is stale there. What it does catch is the other half of this problem: image_uncacheable in the site audit flags a card whose response forbids caching in front of your origin, which matters here because the crawler refetches the card from you.
Facebook shows the wrong image or the wrong title
Symptom
The share shows a logo, a sidebar thumbnail, or the card from another page.
Cause and fix
Work through these in order. The first two account for most cases.
The wrong URL was scraped. Facebook groups links by canonical URL: "All links that specify the same canonical URL are treated as the same resource", and without og:url "the URL of the page is assumed to be the canonical URL". The wrong card is often another URL's cached data, because og:url on this page points at that other page. A template that hardcodes the homepage here makes every page one resource to Facebook. Make og:url the page's own canonical address. Meta says it should be "the undecorated URL, without session variables, user identifying parameters, or counters", and that these URLs must be absolute.
A redirect sits in front. Meta says the sharing details Facebook uses "are the ones at the final link in the redirect chain", and that the final URL should carry the og:url tag. Check the whole chain, not just the URL you pasted.
More than one og:image. A theme default and a plugin's tag, or a layout tag beside a page tag, put two in the head. Meta's pages I read do not say which one Facebook prefers, so do not rely on the order. Make the page declare exactly one.
The title is locked. Meta's FAQ says properties other than the title "can be modified at any time", but a link's title cannot be changed once it has more than 50 interactions. If only the title refuses to update, that is the documented reason and it is not a caching problem.
Detected by
properOG does not check og:url, in the checker or the audit. Compare it with the page's real address yourself, as in the curl command in the step-by-step section.
Facebook shows no image at all
Symptom
The share has a title and description and no picture, or a grey or white box where it should be.
Cause and fix
The tag is missing. A page with no og:image gives Facebook nothing to show. This is the defect the Next.js guide traces to a replaced openGraph object, and other platforms and themes have their own versions. The audit reports it as image_missing (critical), with the pages that lack it.
The image URL does not load. Meta's FAQ on a white box: make sure the image URL "is accessible to our crawler", is no bigger than 8 MB, and has not been removed from your site. A 404, a redirect to a login page, or a host that blocks the crawler's user agent all end here. The audit reports a declared card that does not resolve as image_broken, and the checker's "Image loads" check fails and shows the HTTP status.
The first share comes too early. Meta's FAQ: "Images are cached asynchronously, so the image may not render the first time someone shares your content." The crawler has to see the image once before it can render it. Meta lists three remedies: run the URL through the Sharing Debugger before anyone shares it, force a scrape through the Graph API, or add og:image:width and og:image:height so Facebook can render the image without downloading and processing it first. Do all three on pages you are about to promote.
The crawler never got the page. If your server answers the crawler's user agent differently (a bot challenge, a firewall rule, a geo or login redirect), the cache holds an error or an empty page. Meta's own test: set your browser's user agent to the Facebook string, load the URL, then switch to a mobile Safari user agent and load it again. If the page loads only in the second case, the fault is user-agent handling. You can run the same test from a terminal:
curl -s -H 'Range: bytes=0-524288' \
-A 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)' \
--compressed -D - -o /dev/null https://your-site.com/your-page
That request is modelled on Meta's own crawler simulation, and its Range header asks for the first 512 KB. Look for a 200 or 206 status, a content-type of text/html, and an answer within a few seconds.
Detected by
image_missing, image_broken, and image_unverified when the audit could not tell either way.
Facebook shows a small card instead of a large one
Symptom
The link appears as a small square thumbnail beside the title, not as a wide image above it.
Cause
Size, in the documentation's own numbers. The minimum image dimension is 200 x 200 pixels. Images "smaller than 600 x 315 pixels but larger than 200 x 200 pixels will be rendered with a small, square image". Meta recommends at least 1200 x 630 pixels for high-resolution displays, a ratio as close to 1.91:1 as possible so the full image shows in Feed without cropping, and a file under 8 MB.
Fix
Export the card at 1200 x 630 and keep anything important away from the outer edge. State the real dimensions in the head so Facebook does not have to measure the file before it can draw it:
<meta property="og:url" content="https://your-site.com/your-page" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Your page title" />
<meta property="og:description" content="One or two sentences." />
<meta property="og:image" content="https://your-site.com/og/your-page-v2.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
Meta documents og:image:type as one of image/jpeg, image/gif or image/png. Use PNG or JPEG. WebP and AVIF are not on that list.
Detected by
The checker's Dimensions check scores size and ratio against 1200 x 630, and its Facebook platform row calls an image under 600 pixels wide a "small or missing preview card". The audit reports image_undersized (info) for a card narrower than 1200 pixels. Its threshold is stricter than Facebook's small-card line, so a card can trigger the finding and still render large.
The image is too large or too slow
Symptom
The preview works some days and not others, works in the debugger and not on first share, or never shows for heavy photographic cards.
Cause and fix
Meta's hard limits are 8 MB for the file and a few seconds for the crawler to read your content. They are a ceiling, not a target. A card measured in megabytes is slow for every client that fetches it, and a card rendered fresh on each request, such as a generated image on a cold serverless function, can miss the window on exactly the request that matters, the crawler's first one.
Keep a designed card well under 500 KB. For generated cards, send a cache header so the crawler is served from a cache and not a fresh render, for example Cache-Control: public, max-age=0, s-maxage=86400, stale-while-revalidate=604800.
Keep the tags early too. Meta cuts off Open Graph properties that sit after the first megabyte of the document, so put them in the <head>, above any large inline script or style.
Detected by
image_oversized (warning) fires over 500 KB, and the checker's File size check scores the same threshold. image_uncacheable reports a card nothing caches.
Fix it step by step with the Sharing Debugger
The Sharing Debugger is Meta's tool at developers.facebook.com/tools/debug/, and you have to be logged in to Facebook to use it. Meta's pages describe it as the way to see the tags the crawler scraped, any errors or warnings, and to force a fresh scrape. Run these steps in order.
- Fix the page first. A scrape reads what your server serves right now, so deploy the change before touching Facebook. Read the served tags as the crawler:
You want onecurl -s --compressed \ -A 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)' \ https://your-site.com/your-page \ | grep -oE '<meta (property|name)="(og|twitter|fb):[^"]*" content="[^"]*"'og:image, an absoluteog:urlthat is this page's own address, and the dimensions. - Put a changed card at a new URL, and keep the old file in place.
- Paste the page URL into the debugger and run it. Read the scraped values and the warnings, not only the preview image. Check the image URL it reports is the new one, the canonical URL it resolved to, and the response code.
- Scrape again. Meta says the debugger can force a re-scrape and that a re-scrape lets you fix HTML errors and check again. Use the tool's re-scrape control after each change and read the result again. (The documentation does not name the button. Use whichever control the debugger offers for a fresh fetch.)
- Repeat until the scraped data is right, then share the link somewhere private, such as a draft or a group only you can see, to look at the real card.
This fixes new shares. Meta's FAQ is explicit that "changing og:title, og:image, etc. only applies to future shares of that link", and that the original share keeps the old image unless it is refreshed in the post. If an old post matters, the dependable route is to share the link again as a new post.
Re-scraping many URLs with the Graph API
The debugger handles one URL at a time by hand. For a relaunch or a template change that touched hundreds of pages, Meta documents a Graph API call that makes the crawler scrape a URL:
POST https://graph.facebook.com/?id=https%3A%2F%2Fyour-site.com%2Fyour-page&scrape=true
Meta's page on changing link data gives it as POST /?id={your_url}&scrape=true and says "the URL must be encoded so that it doesn't interfere with the scrape parameter". It is the same "force-scrape via the Graph API" that Meta lists for pre-caching images.
Three things the pages I read do not settle, so check them against your own app before you build a job on them: whether the call needs an access token, what rate limit applies, and what volume Meta allows. Run a small batch first and read the error response if it refuses.
Scrape the pages people actually share first, and each URL once, after its fix is live. A scrape of an unfixed page only refreshes the same wrong data.
Cache-busting that works, and what does not
Most advice on this is folklore. This is what follows from what Meta documents.
Works
- A new image URL. The one change the docs require for an updated image. A new filename, or a version or hash in the path or query.
- A re-scrape of the page URL, in the debugger or through the Graph API, after the new tags are live. This replaces the stored metadata for new shares.
- Waiting. The automatic refresh comes about every 30 days.
Does not work
- Overwriting the image at the same URL. The image cache is keyed on URL, so Facebook has no reason to look again.
- Editing the tags and doing nothing else. Nothing re-scrapes until the debugger, an API call, or the 30-day refresh does.
- Purging your own CDN. Facebook's cache is Facebook's.
- Expecting old posts to change. Meta says old shares keep the old data.
- A different page URL each time (
?v=2) to get a fresh scrape. Meta saysog:urlshould be undecorated and that links with the same canonical URL are one resource, and a page that omits it is keyed on its own URL. Fix the tags and re-scrape the one URL. robots.txtas a control. Meta saysfacebookexternalhitmay bypass it for security or integrity checks.
Verify your fix
Check the page. The checker scores the card's dimensions, file size, format and tags, and shows how it renders on Facebook and other platforms. Enter the page you fixed, or check this guide's own card as an example. Confirm the Dimensions and File size checks pass and the Facebook row reads "excellent".
Check the site. One page is rarely the only broken one. The site audit reads your sitemap, groups URLs into templates, samples across them, and reports image_missing, image_broken, image_oversized, image_undersized and image_uncacheable with a fix for each.
Check what Facebook stored. properOG reads your page. It cannot read Facebook's cache. Run the URL through Meta's Sharing Debugger, re-scrape, and confirm the image URL, the canonical URL and the response code are the ones you expect. A clean result in our checker and a stale one in the debugger means your page is right and Facebook has not fetched it again.
If the tags themselves are wrong, fix them at the source: the Next.js guide covers how that framework produces them, and the WordPress and Shopify guides cover those platforms.
Frequently Asked Questions
How long does Facebook cache Open Graph data?
Meta says its crawler updates link metadata automatically every 30 days, and that a change can take up to 30 days to show. You do not have to wait: scraping the URL again in the Sharing Debugger, or with a Graph API scrape call, refreshes it for new shares.
How do I clear the Facebook cache for a link?
Make the new tags live, put a changed image at a new URL, then paste the page URL into the Sharing Debugger and re-scrape it. Facebook caches metadata by page URL and pictures by image URL, so changing the file behind an old image URL does not help.
Why does Facebook show an old image after I changed it?
Facebook caches images by URL. If the new card has the same URL as the old one, Facebook has no reason to fetch it again. Publish it at a new URL, update og:image, and re-scrape. Posts shared before the fix keep the old image, because a change only applies to future shares.
What size should a Facebook link preview image be?
At least 1200 x 630 pixels, at a ratio near 1.91:1, under 8 MB. Meta says images smaller than 600 x 315 pixels but larger than 200 x 200 are shown as a small square, and 200 x 200 is the minimum.
Why does the first share of a new link show no image?
Facebook caches images asynchronously, so the crawler has to see an image once before it renders. Run the new URL through the Sharing Debugger before you post it, and add og:image:width and og:image:height so the image can render without being downloaded first.
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