Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Open Graph Link Preview Markup, Crawler Requirements, and Metadata Updates

How to set Open Graph tags, meet crawler requirements, fix preview images, and refresh link metadata for social link sharing.

This page summarizes Meta’s sharing documentation for webmasters on how URLs become link previews when people share to Facebook, Messenger, and related surfaces. Most shares are a single URL; your HTML og:* meta tags and how your server responds to the Facebook Crawler determine the title, description, and image people see.

Section titled “Open Graph markup: how to control the link preview title and image”

Open Graph tags in the page <head> tell the crawler what to show instead of guessing from page content.

Most content is shared to Facebook as a URL, so it’s important that you mark up your website with Open Graph tags to take control over how your content appears on Facebook. For your website to be shared correctly by our crawler, your server must also use the gzip and deflate encodings.

— Meta, A Guide to Sharing for Webmasters

Without these Open Graph tags, the Facebook Crawler uses internal heuristics to make a best guess about the title, description, and preview image for your content. Designate this info explicitly with Open Graph tags to ensure the highest quality posts on Facebook.

— Meta, A Guide to Sharing for Webmasters

For a typical article, Meta’s markup example uses og:type="article" plus og:url, og:title, og:description, and og:image.

Meta lists these as the minimum set for all content types in A Guide to Sharing for Webmasters:

Tag Role
og:url Canonical URL for the page (no session IDs or tracking parameters). Likes and shares aggregate on this URL.
og:title Title without site branding in the title field.
og:description Short summary, usually two to four sentences.
og:image Image URL for the preview. See Images in Link Shares.
fb:app_id Required for Facebook Insights analytics from App Dashboard.

Useful additions include og:type (defaults to website), og:locale (defaults to en_US), and og:locale:alternate for translations. Each URL is one object—only one og:type per page.

A minimal setup for title and image alone is described in How to Specify a Link Title and Image for a Shared Link:

<meta property="og:title" content="your_link_title">
<meta property="og:image" content="your_image_url">
Section titled “og:image size, aspect ratio, and caching for link previews”
Section titled “Image requirements for Facebook link shares”

From Images in Link Shares:

  • Minimum 200×200 pixels; file size ≤ 8 MB.
  • 1200×630 recommended for high-resolution Feed; 600×315 minimum for larger link posts.
  • Target about 1.91:1 aspect ratio to reduce cropping in Feed (desktop and mobile use the same ratio).
  • Server must accept gzip and deflate for the crawler.

Optional og:image:width, og:image:height, og:image:secure_url, and og:image:type help the crawler render the image on the first share without waiting on an async download (Images in Link Shares, Sharing best practices).

Why the preview image is missing on the first share

Section titled “Why the preview image is missing on the first share”

When content is shared for the first time, the Facebook crawler will scrape and cache the metadata from the URL shared. The crawler has to see an image at least once before it can be rendered. This means that the first person who shares a piece of content won’t see a rendered image

— Meta, Images in Link Shares

To avoid that, pre-cache via the Sharing Debugger workflow in the webmasters guide (see below), force a scrape with POST /?id={your_url}&scrape=true as in How to Change the Metadata for an Existing Link, or set og:image:width and og:image:height.

Images are cached by image URL. To replace an image, use a new URL; do not delete the old file if existing posts still reference it (Images in Link Shares). Updating tags on the page does not change previews on posts already published unless someone uses Refresh share attachment on that post (Link Sharing FAQ).

Facebook Crawler: server requirements and user-agent testing

Section titled “Facebook Crawler: server requirements and user-agent testing”

The crawler fetches your HTML when a link is shared. Meta Web Crawlers states:

  • gzip and deflate encodings on your server.
  • Open Graph properties in the first 1 MB of the document.
  • Response within a few seconds.
  • Honor Range requests (bytes=0-524288) or ignore Range entirely.
  • Allowlist crawler user agents or IP addresses.

Simulate a crawl:

curl -v --compressed -H "Range: bytes=0-524288" -H "Connection: close" -A "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" "$URL"

If a normal browser works but facebookexternalhit/1.1 does not, treat it as a user-agent or bot-handling issue (Test Whether Facebook User-Agent Is Handled Properly).

Optimizing Metadata notes you may serve Open Graph tags only to the crawler, or point extra metadata via <link rel="opengraph" href="..."/>. For mobile subdomains, put og:* on the desktop URL and use <link rel="canonical" href="DESKTOP_OBJECT_URL" /> on mobile (Optimizing Metadata).

Sharing Debugger: test Open Graph tags and force a rescrape

Section titled “Sharing Debugger: test Open Graph tags and force a rescrape”

To see how your markup appears to the Facebook Crawler enter a URL into Sharing Debugger. It will show which meta tags the crawler scrapes as well as any errors or warnings.

— Meta, A Guide to Sharing for Webmasters

The debugger also triggers a scrape, useful when you fix HTML errors (A Guide to Sharing for Webmasters). Use it after changing tags, as in How to Specify a Link Title and Image for a Shared Link.

Section titled “Updating link metadata: scrape interval, frozen titles, and Graph API”

Link metadata tends to change infrequently, so the Facebook crawler conserves resources by updating your link metadata automatically every 30 days. Therefore, it can take as much as 30 days for your link details to update after a change. You can force a refresh using the Sharing Debugger or with a Graph API call (described below).

— Meta, How to Change the Metadata for an Existing Link

After you update og:* on the page:

  1. Update meta tags on the live URL.
  2. Call POST /?id={your_url}&scrape=true (URL-encoded) per How to Change the Metadata for an Existing Link.

Limits: The title cannot change after 50 user interactions (likes, shares, comments). Object type cannot change once the link was used in a story (How to Change the Metadata for an Existing Link). Other properties can change more freely; old shares still show old data unless refreshed (Link Sharing FAQ).

og:url canonical URLs, URL moves, and verified-domain controls

Section titled “og:url canonical URLs, URL moves, and verified-domain controls”

og:url defines the canonical resource for metrics and metadata (Specify a Canonical URL):

<meta property="og:url" content="https://example.com/path" />

All URLs sharing the same og:url share one engagement bucket. Cross-domain canonical URLs require the other domain to allow yours via the Webmaster Tool after domain verification.

To preserve metrics when the public URL changes, Meta recommends: redirect humans with 301/302 while not redirecting the Facebook crawler; set og:url on the new page to the old URL; keep a stub at the old URL with matching og:* tags (Specify a Canonical URL). Changing URLs without that pattern splits likes and shares (Link Sharing FAQ).

Verified owners can limit ad link editing—when advertisers change title, description, or image on ads pointing at your domain—via allow/deny lists in Domain Access (Ad Link Editing). Changes may take up to 24 hours.

Cloudflare WAF: “Attention Required” when Facebook scrapes your site

Section titled “Cloudflare WAF: “Attention Required” when Facebook scrapes your site”

Cloudflare does not block or challenge requests from Facebook by default. However, a post of a website to Facebook returns an Attention Required error in the following situations:

You have globally enabled Under Attack mode. There is a configuration rule or page rule setting turning on Under Attack mode. There is a custom rule with a challenge or block action that includes a Facebook IP address.

A country challenge can block a Facebook IP address. Facebook is known to crawl from both the US and Ireland.

— Cloudflare, Issues sharing to Facebook

Mitigations from the same doc: remove blocking rules for Facebook IPs; add a skip rule for ASNs AS32934 and AS63293; review rules affecting Facebook crawlers; re-scrape in Facebook’s debugger and contact Cloudflare Support with URLs if needed (Issues sharing to Facebook).

Section titled “Common link-preview mistakes and quick fixes”
Symptom Likely cause What to do
No image on first share Async image cache Pre-scrape via debugger; add og:image:width / og:image:height (Link Sharing FAQ)
White box Dead URL, >8 MB, slow fetch Fix URL, size, latency; keep old image URLs live (Link Sharing FAQ)
Small square image Image between 200×200 and 600×315 Use ≥600×315, prefer 1.91:1 (Link Sharing FAQ)
Wrong crop Aspect ratio / face detection Use ~1.91:1 images (Images in Link Shares)
No preview at all Content filtering Report via Meta Help with the URL (Link Sharing FAQ)
Title won’t update Frozen after 50 interactions Plan titles before wide distribution (How to Change the Metadata for an Existing Link)

Implement the checklist in Sharing best practices: enable compression, add Open Graph tags, and test with the debugger.

  1. Add or update og:url, og:title, og:description, and og:image (absolute HTTPS URLs) using A Guide to Sharing for Webmasters and Images in Link Shares.

  2. Confirm the server returns gzip/deflate and responds within a few seconds; run the curl example from Meta Web Crawlers against your URL.

  3. Open the Sharing Debugger flow for your URL, fix reported errors, and trigger a fresh scrape.

  4. If previews fail only behind Cloudflare, review Issues sharing to Facebook and re-scrape after rule changes.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.