Blog · SEO

Open Graph Tags: How to Control Your Link Previews

When someone shares your link, Open Graph tags decide the title, text and image people see. The tags that matter, image sizes that work on every platform, why old previews stick, how our free Open Graph checker reads your page and how to fix every missing tag.

Searvia · 10/24/2026 · 11 min read

In short: Open Graph tags tell social networks and chat apps what to show when your link is shared. Every page needs og:title, og:description, og:image and og:url, plus twitter:card for X. Use an absolute HTTPS image URL, about 1200 × 630 px, under 5 MB, with the important part near the center. Render the tags in the HTML your server sends, and after changing them, refresh each platform's cached preview, because old cards stick around.

A link preview is often the first impression of your site. A colleague pastes your pricing page into Slack, a customer shares a product in WhatsApp, a partner posts your article on LinkedIn. If the page has no Open Graph tags, each app guesses: the cookie banner text becomes the description, the image is a tiny logo or nothing, and the title is whatever the page's <title> happens to be.

This guide covers what each tag does, which platforms read what, the image sizes that hold up everywhere, why previews don't update, and how our free Open Graph checker finds missing tags, with a fix for each one.

What Open Graph is

According to ogp.me, "The Open Graph protocol was originally created at Facebook." It turns a web page into a "rich object" with a title, type, image and URL that other services can display. Facebook created it, but LinkedIn, Slack and most messaging apps read the same tags, and X reads them as a fallback for its own.

The tags are ordinary meta elements in the <head>, written with a property attribute:

<meta property="og:title" content="Waterproof Hiking Boots for Women">
<meta property="og:description" content="Leather boots tested on 40 km of wet trail. Sizes 36 to 43.">
<meta property="og:image" content="https://www.example.com/images/boots-share.jpg">
<meta property="og:url" content="https://www.example.com/hiking-boots/women/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">

The tags that matter

The protocol defines four required properties: a title, a type, an image and a canonical URL. In practice, a handful of optional ones matter too.

TagWhat it doesNotes
og:titleThe headline of the previewMeta advises leaving out branding such as your site name
og:descriptionOne or two sentences under the titleMeta describes it as a brief description of the content
og:imageThe preview imageAbsolute URL; the most visible part of the card
og:urlThe canonical URL of the pageMeta: "undecorated," without session or tracking parameters
og:typeThe kind of objectwebsite for most pages, article for posts; ogp.me says unmarked pages are treated as website
og:site_nameThe name of the overall siteShown by some apps above the title
og:image:width / og:image:heightImage dimensions in pixelsLets Meta render the image on the first share without downloading it first
og:image:altText description of the imageogp.me: a page with og:image "should specify og:image:alt"
twitter:cardThe X card typesummary (small image) or summary_large_image

Two details from the specification are worth knowing. If a tag appears twice, "the first tag (from top to bottom) is given preference during conflicts," so a theme's tag above your plugin's tag wins. And structured properties like og:image:width belong to the og:image immediately above them.

Who reads what

Each platform documents its own rules. The essentials:

Choosing the og:image

The image decides whether a preview looks deliberate or broken. Platform requirements differ slightly, so aim for an image that satisfies all of them:

RequirementSafe choice
Size1200 × 630 px (meets LinkedIn's 1200 × 627 minimum and Meta's 1080 px width advice)
RatioAbout 1.91:1; X crops large cards to 2:1, so keep key content centered
File sizeUnder 5 MB; in practice a few hundred KB is plenty
FormatJPG, PNG or WebP; not SVG
URLAbsolute and HTTPS, for example https://www.example.com/og/boots.jpg
AccessPublicly reachable: not behind a login, not blocked by robots.txt or a firewall
ContentReadable at thumbnail size: large text, if any, and a clear subject

Use a specific image per important page (product photo, article illustration) and a well-designed default for the rest. A logo on a white square is the weakest option: most apps show it small or crop it awkwardly.

Why previews don't update

Platforms store the preview they built the first time a URL was shared. Meta states that "Images are cached based on the URL and won't be updated unless the URL changes," so replacing share.jpg with a new file under the same name may change nothing. The reliable sequence:

Tags for different page types

The basic tags are the same everywhere, but a few page types benefit from more:

How to see what a crawler sees

Before you blame a platform, look at the HTML it receives. Open the page with "View source" (not the DevTools element inspector, which shows the page after scripts run) and search for og:. Meta's guide also gives the user agent of its crawler, facebookexternalhit/1.1, so you can fetch the page as Facebook does from a terminal:

curl -s -A "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" https://www.example.com/ | grep -i 'og:'

If the tags appear in your browser but not in this output, they are added by JavaScript, or your server or firewall answers bots differently.

How the Searvia Open Graph checker works

The free Open Graph checker uses the same engine as our website SEO checker and puts three checks first: social sharing tags, the title tag and the meta description. Enter a domain or a page address and it:

The result is a table with a tick or cross and the exact value for each tag:

StatusWhenMessage
PassAll four tags present"All social sharing tags are set."
WarningOne or more missing"N social sharing tags are missing."

The check never shows a failure and carries low priority in the overall score, because missing social tags don't stop a page from being found. They do make every share look worse, which is why this tool shows them first.

The title and description checks (pass at 30 to 60 and 70 to 160 characters) appear right below, because many apps fall back to them when Open Graph tags are missing. The report also includes a Google result preview, which uses og:site_name for the site name when you set one.

What the checker does not do: it doesn't download the image to measure it, doesn't check og:url, og:type or og:image:alt, and doesn't fetch the page as each platform's crawler. Use the platform debuggers for the final look.

How to read the results

How to fix each missing tag

og:title is missing

Add a headline written for people scrolling a feed, not for a search engine. It can match your <title> without the brand suffix:

<meta property="og:title" content="Waterproof Hiking Boots for Women">

og:description is missing

Write one or two sentences with a concrete detail. Reusing your meta description is fine:

<meta property="og:description" content="Leather boots tested on 40 km of wet trail. Sizes 36 to 43, free returns.">

og:image is missing

<meta property="og:image" content="https://www.example.com/og/boots-share.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="A pair of brown leather hiking boots on a wet rock">

twitter:card is missing

<meta name="twitter:card" content="summary_large_image">

Note the name attribute: Twitter tags conventionally use name, Open Graph tags use property.

Platform settings

PlatformWhere to set social tags
WordPressYoast SEO and Rank Math output Open Graph and Twitter tags; set a default image in the plugin's social settings and per-page images in each page's social tab
ShopifyMost themes output Open Graph tags; the default image is the social sharing image in the store's preferences, and products use their featured image
WixEach page's SEO settings include social share options
WebflowPage settings › Open Graph settings
Next.jsopenGraph and twitter fields of the Metadata API, or an opengraph-image file in the route

After any change, run the checker again, then the platform debuggers.

Common mistakes

Worked example (hypothetical)

The following is a hypothetical example, not real data. Fernway, an invented project management app, notices that links to its site in Slack show only a gray box and the text "We use cookies to improve your experience."

The Open Graph checker shows og:title and og:description present, but og:image and twitter:card missing. The description value turns out to be the cookie banner text: a plugin generates og:description from the first paragraph in the HTML, and the banner comes first.

The fixes: a written og:description in the page template, a 1200 × 630 px image showing the product's board view with the subject centered, og:image:width, og:image:height and og:image:alt, and twitter:card set to summary_large_image. A second run of the checker passes. The team then runs the URL through the Sharing Debugger and Post Inspector and posts the link again in Slack, where the new card appears.

A 15-minute checklist

How Searvia keeps your previews and listings in shape

The free Open Graph checker checks one page, your home page or any address you enter, in about 20 seconds, with no sign-up, and the same report covers the other 37 checks of our website audit. Previews are only one part of how your pages appear; titles, descriptions and canonicals are covered in our meta tags guide, and the meta tag checker shows your Google preview.

For the whole site, a free Searvia account adds a weekly site audit that crawls every page and flags missing or duplicate titles and descriptions, so the text that apps fall back to stays accurate. For a weak title or description, Write with AI in the audit suggests ready options (1 credit), and the audit runs again every week, so a theme or plugin update that breaks your titles or descriptions shows up in the next report.

Frequently Asked Questions

What are Open Graph tags?
Open Graph tags are meta tags in a page's head, such as og:title, og:description and og:image, that tell social networks and chat apps what to show when someone shares the link. The protocol was originally created at Facebook and is now read by LinkedIn, Slack, X and most messaging apps. Without them, each app guesses a title and image from the page, often badly.
What size should an og:image be?
1200 × 630 pixels is a safe default. LinkedIn asks for at least 1200 × 627 pixels at a 1.91:1 ratio and under 5 MB, Meta recommends images at least 1080 pixels wide, and X's large image card uses a 2:1 ratio and accepts files under 5 MB. Keep important content near the center so different crops do not cut it, use JPG, PNG or WebP rather than SVG, and serve it from an absolute HTTPS URL.
Do I need Twitter card tags if I have Open Graph tags?
Add twitter:card at least. X reads its own twitter: tags first and falls back to the matching Open Graph tags for title, description and image, so you rarely need to duplicate those. But twitter:card sets the card type, such as summary_large_image for a large image, and has no Open Graph equivalent.
Why does my link still show the old preview?
Platforms cache previews. Meta caches images by URL and won't update one unless the URL changes, so give a new image a new file name. Then ask each platform to fetch the page again: the Sharing Debugger for Facebook, Post Inspector for LinkedIn. Posts that were already shared usually keep the old card; the new preview applies to new shares.
Do Open Graph tags help SEO?
Not directly as a ranking factor. They control how links look when shared, which affects clicks from social and chat apps. Google does list og:title as one of the sources it may use for a title link, and og:site_name as one of the signals for the site name shown in results, so accurate tags also support how you appear in Google.

Sources

  1. The Open Graph protocol – ogp.me
  2. A Guide to Sharing for Webmasters – Meta for Developers
  3. Sharing Best Practices for Websites & Mobile Apps – Meta for Developers
  4. Make your website shareable on LinkedIn – LinkedIn Help
  5. Cards markup – X Developer Platform
  6. Unfurling links in messages – Slack Developer Docs
  7. Influencing your title links in search results – Google Search Central
  8. Provide a site name to Google Search – Google Search Central
  9. Meta tags and attributes that Google supports – Google Search Central

Keep Reading