Skip to main content
toolsxulo

Open Graph Tags: How Link Previews Are Actually Built

Written by Toolsxulo Team · Last updated November 18, 2026

Paste a link into Slack, LinkedIn, or a group chat and a rich card appears - a title, a short blurb, an image - built entirely from a handful of meta tags most page authors never look at. Open Graph is that tag set, and getting it wrong doesn't throw an error; it just quietly produces an ugly or empty-looking preview. This guide covers how the tags actually get read, why previews don't update the moment you change them, and where the standard's limits are.

Open the tool: Open Graph Generator

An informal standard read by far more than Facebook

Open Graph originated as a Facebook protocol, but it was published openly and became the de facto standard nearly every link-unfurling app relies on - LinkedIn, Slack, WhatsApp, Discord, iMessage, and countless others all scrape a page's og:title, og:description, og:image, and og:url tags to build their preview card, without any of them coordinating with Facebook on it. That's the practical reason to bother with these tags even if a site never expects Facebook traffic: any tool that turns a pasted link into a rich card is very likely reading Open Graph, not inventing its own scraping logic. When those tags are missing, most of these apps fall back to guessing - pulling the page's <title> tag and the first or largest image they find - which is exactly the inconsistent, half-right result Open Graph exists to avoid.

Image requirements that actually affect how the card renders

1200x630 pixels (roughly a 1.91:1 ratio) is the widely recommended og:image size because it matches the wide card layout most of these platforms default to; images with a very different aspect ratio tend to get cropped in ways you don't control rather than resized cleanly. The image URL needs to be absolute (a full https:// address, not a relative path) since it's fetched independently by each platform's own server-side scraper, not loaded in the visitor's browser. Very small images are sometimes skipped entirely rather than upscaled, and large, uncompressed image files can slow down or fail the scrape on platforms with tighter fetch timeouts - keeping the image reasonably compressed is worth doing even though nothing in the tag itself enforces a limit.

Why a change you just made doesn't show up immediately

Facebook and LinkedIn cache the scraped result the first time any link is shared, which means editing og:title or og:image after that first share won't update the preview anywhere it's already been posted, and often not for new shares either until the cache expires or is cleared. Both platforms publish debugging tools for this reason - Facebook's Sharing Debugger and LinkedIn's Post Inspector - which let you force a fresh scrape on demand rather than waiting for the cache to expire naturally. Other platforms behave differently: WhatsApp's cache is notoriously sticky and tied to the exact URL, so a common workaround when testing is appending a harmless query parameter to force it to be treated as a new, unscraped link.

og:type and the relationship to Twitter/X Cards

og:type (website, article, product, profile, and others) tells consuming platforms what kind of content the page represents, and some platforms use it to unlock additional structured fields - Facebook, for instance, reads article-specific tags like publish date only when og:type is set to "article" - so leaving it as the website default on content that's clearly an article can mean losing that extra context. Open Graph and Twitter/X Cards are separate, independently-read standards even though they overlap: X will fall back to a page's Open Graph tags if dedicated twitter: tags are absent, but that fallback doesn't give you control over which card layout gets used, since twitter:card itself has no Open Graph equivalent. Sites that want a specific, reliable appearance on both surfaces generally set both tag sets rather than relying on one to cover the other.

Frequently asked

Do Open Graph tags have any effect on Google search rankings?
No - Open Graph is not a ranking signal for Google Search. Its entire purpose is controlling how a link looks when shared on social platforms and chat apps; for how a page appears directly in Google's results, the relevant elements are the <title> tag, meta description, and structured data, not og: tags.
Can og:image use a relative URL like /images/photo.jpg?
It should be an absolute URL (https://example.com/images/photo.jpg), not a relative one. The tag is fetched by each platform's own server-side scraper rather than resolved in a browser against the page's location, so a relative path frequently fails to resolve and the image silently doesn't appear.
What happens if I don't set og:type at all?
Most platforms default to treating the page as "website" if og:type is omitted, and the preview card still renders using title, description, and image. The main cost is missed extra context - some platforms only read type-specific fields, like an article's publish date, when og:type is explicitly set to the matching value.
Do WhatsApp and iMessage read Open Graph tags the same way as Facebook?
They read the same og:title, og:description, and og:image tags, but their scraping and caching behavior differs - WhatsApp in particular caches previews per exact URL in a way that can persist stubbornly even after tags change, often requiring a modified URL (e.g. an extra query parameter) to force a fresh preview during testing.

Try the tools