All guides

How to Refresh an Open Graph Preview After You Publish

Published

Check the tags a crawler actually fetched, replace a cached link image by changing its URL, and re-scrape Facebook and LinkedIn without guessing.

Steps

  1. Open the image URL directly. In a private window, load the og:image address. You want the file itself, over HTTPS, with no login wall.
  2. Read the page the way a logged-out visitor would. View source or the debugger's raw tags. Confirm og:url, og:title, og:image, width, and height describe this deploy.
  3. Change the image URL when the picture changes. Use a new path or file name. Do not only overwrite yesterday's file.
  4. Scrape the page URL. Run Meta's Sharing Debugger or LinkedIn's Post Inspector on the article URL, then look at the preview they show after the new fetch.

The preview is a cache of a URL, not a view of your laptop

Exporting a 1200 × 630 card does not publish it. The Open Graph tool downloads a file. Facebook, LinkedIn, Slack, iMessage, and the rest build the card by fetching your page, reading the tags, and fetching the image URL those tags name. They remember what they fetched. Editing the Markdown and exporting again changes nothing on their side until the deployed tags point at a URL they are willing to fetch again.

Meta's documentation is blunt about images: they are cached based on the URL, and they will not update unless the URL changes. Use a new URL for a new image. Do not delete the old file if older posts still point at it. Those posts keep the image they referenced. The page that explains this is Images in Link Shares.

Keep the article URL stable. og:url is supposed to be the undecorated canonical address. Meta says likes and shares aggregate on that URL, and that you should not hang session parameters or counters on it. A cache-busting query on the article URL fights that. Bust the image URL instead: /og/release-2026-12-02.png rather than /og/cover.png?v=9 glued onto the HTML address. A new image path is enough.

Tags worth setting before the first share

The basic set is og:url, og:title, og:description, and og:image. For the image, also set og:image:width, og:image:height, and og:image:alt. Meta says width and height let the crawler render the image on the first share instead of waiting to download and measure it. Without that, the first person to share the link can see a card with no picture, even when the tags are otherwise fine. Their page on pre-caching lists three ways to avoid that: run the URL through the Sharing Debugger, force a scrape through the Graph API, or provide the dimensions.

og:image should be an absolute HTTPS URL that returns the image with a normal image content type. A relative path, a file that redirects to an HTML login page, or a host that blocks the crawler all fail in the debugger as a missing image. Open the image URL yourself while logged out. If you cannot see the picture, the crawler cannot either.

og:image:alt describes the picture and is not a second copy of the title unless the picture is the title. How to write that sentence is in alt text for text images.

Meta's image requirements, from the same link-share document, are concrete. The smallest allowed image is 200 × 200. The file must not be larger than 8 MB. They ask for at least 1200 × 630 for a high-resolution display, and they say an image under 600 × 315 still shows but at a much smaller size in the link post. They also say the crawler accepts gzip and deflate. This editor's Open Graph preset is 1200 × 630, which matches the size they recommend you start from. LinkedIn's link image is a separate preset at 1200 × 627. A 1200 × 675 photo made for an X attachment is not the same rectangle. The size guide has the row-by-row comparison. Export the link card at the link size instead of hoping a crop will spare the heading.

Re-scrape after the deploy, not before

Order matters. If you scrape while the new HTML is still on your laptop, you have refreshed the cache of the old site.

  1. Upload the image to its new URL and load that URL in a private window.
  2. Deploy the page so the live HTML points at that URL, with width, height, and alt.
  3. Paste the page URL into the Sharing Debugger. You need to be logged into Facebook. Debugger output shows the tags the crawler scraped and any errors. Use it again when you need the crawler to fetch the page once more. Meta's webmaster guide says the debugger triggers a scrape, which is how you update what Facebook has stored after you fix the HTML.
  4. Read the preview the debugger shows. If it is the previous title or the previous image, open the raw tags. You are looking for a cached og:image that still names the old file, an og:url that points at a different host, or a redirect from the pretty URL to a URL you did not tag.
  5. For LinkedIn, paste the same page URL into the Post Inspector. Inspect the card it shows after the fetch. LinkedIn's link-image dimensions are the 1200 × 627 preset, not the Facebook 1200 × 630 one, when you care about that specific crop.
  6. For X, look at the composer preview when you paste the URL. Do not trust a card validator that no longer exists. If the composer shows yesterday's image, confirm the live tags first. X is caching a fetch of its own. Fix the URL and the file before you keep repasting.

If the debugger shows the right image and a real phone still shows the old one, the post on screen was created before the scrape. Meta notes that updating the image for a URL does not rewrite previews already attached to old shares. New shares pick up the new scrape. Old posts can keep the old card. That is a reason to get the image right before the announcement, not a reason to edit the article URL.

Failures that look like a cache bug

A redirect to a cookie wall or a geo interstitial returns HTML to the crawler. The debugger will show that, usually as missing tags or the wrong title. Fix the response for the crawler instead of scraping harder.

The image URL in the tag does not match the file you just exported. This happens when a CMS regenerates a social image from its own template and ignores the file you uploaded. View source on the live page.

The image is larger than 8 MB or smaller than 200 × 200. A text card from the presets is nowhere near those edges, but a photographic export someone recompressed badly, or a tiny favicon accidentally placed in og:image, will be. Check the tag, not your memory of which file you meant.

HTTP instead of HTTPS, or a mixed-content image on an HTTPS page. Use an https:// image URL. og:image:secure_url is the HTTPS address when you also provide a non-HTTPS og:image. Serving only HTTPS is simpler.

You overwrote cover.png because the CDN said the path was cached for a year. Meta's cache and your CDN cache are different. Change the path anyway. A new path fixes both, as long as the HTML changes with it.

You scraped the staging host. The production URL still has the old tags. Scrape the URL you will paste into the post.

What this site will not do for you

The editor will not upload the file, write the meta tags, or call the debugger. There is no account on this site that connects to Facebook or LinkedIn. The about page lists that boundary with the other limits. Your job after export is the short one: host the file, point the tags at a new URL, deploy, then ask the debugger what it sees.

When the card is finally right, leave the Markdown next to the article. The next title change is a new export, a new image path, and one more scrape. It is a boring loop, and it is the one that matches how these caches actually work.

Frequently asked questions

I replaced the image file but the old card is still showing. Why?
Meta caches the image by its URL. Overwriting the bytes at the same URL does not refresh the preview. Publish the new file at a new URL, point og:image at it, and scrape the page again.
Does the exporter set og:image for me?
No. Export downloads a file. You upload it, put the absolute HTTPS URL in the page's tags, and deploy that page.
Should I add a random query string to the article URL?
No. Meta treats og:url as the canonical address and aggregates likes and shares there. Change the image URL when the image changes, and keep the page URL stable.
The first person to share the link saw no image. Is the tag wrong?
Not necessarily. Meta's docs say the crawler has to see the image before it can render, so the first share can miss it. Set og:image:width and og:image:height, or run the Sharing Debugger before you announce the URL.

Try the tools