Open Graph Tags: List, Examples and og:image Size

Author: Lucky Oleg | Published Updated

Open Graph is a set of <meta property="og:..."> tags in a page’s head that tell Facebook, LinkedIn, X, Slack, WhatsApp and other apps which title, description, image and URL to show when someone shares the link. Most guides stop at og:title and og:image. Those tags are the start of a dependable link preview, but image access, canonical URLs, caches, and platform-specific rules determine what people actually see.

This guide gives you the Open Graph tags list with copy-paste examples, the og:type values, the og:image size for each platform, how to check your tags, and common reasons an og:image does not render. It also draws a clear boundary between documented preview behavior and unsupported AI-search claims.

If you want a broader primer on head-level metadata, start with our meta tags that actually matter for SEO guide. This article goes deep on Open Graph only.

What Open Graph Actually Is

Open Graph is a protocol Facebook shipped in 2010 to turn web pages into structured objects that social platforms could render as rich cards. The specification never formally expanded, but adoption did. Today every meaningful sharing surface reads OG tags:

  • Social feeds: Facebook, LinkedIn, X, Pinterest, Threads
  • Messengers: WhatsApp, iMessage, Telegram, Signal, Slack, Discord, Microsoft Teams
  • Email and productivity: Gmail inline previews, Notion, Linear, Figma comments

A URL without OG tags may receive a minimal preview assembled from other page metadata, or no preview at all. Correct tags give compatible platforms explicit title, description, image, and URL values, but presentation remains under the platform’s control.

The protocol is simple on purpose. Each tag is a line of HTML with a property attribute and a content attribute. There is no JavaScript requirement, authentication, or API in the protocol itself. A compatible crawler fetches the URL, reads the head, and can use those values to render a card.

Open Graph Tags List: The 4 Required Tags (With Example)

Per the official Open Graph protocol, these four tags are required on any page you want to render as a rich object. Here is a complete example for this article:

<meta property="og:title" content="Open Graph Tags: List, Examples and og:image Size" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://webaloha.co/images/og/open-graph-guide.jpg" />
<meta property="og:url" content="https://webaloha.co/open-graph-tags-complete-guide/" />

A few non-obvious rules:

  • Use property="og:...", not name="og:...". Strict parsers ignore the wrong attribute.
  • og:image must be an absolute HTTPS URL. Relative paths are the single most common reason previews break.
  • og:url should be the canonical URL, matching your <link rel="canonical">. When the two disagree, shares of the same page can be counted and previewed as different URLs.
  • og:type takes one value per URL from the protocol’s list: website, article, book, profile, or one of the music and video types (see the table below).

Optional Open Graph Tags: Extended List With Examples

These are technically optional, but skipping them costs real rendering quality:

<meta property="og:description" content="Open Graph tags list with examples, og:type values, og:image sizes by platform, and how to check tags." />
<meta property="og:site_name" content="Web Aloha" />
<meta property="og:locale" content="en_US" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Diagram of Open Graph tags rendered as a social share card" />
<meta property="og:image:type" content="image/jpeg" />

For blog posts, add the article: namespace. These are read by Facebook, LinkedIn, and several AI crawlers as authorship and freshness signals:

<meta property="article:published_time" content="2026-04-18T09:00:00Z" />
<meta property="article:modified_time" content="2026-04-18T09:00:00Z" />
<meta property="article:author" content="https://webaloha.co/about/" />
<meta property="article:section" content="SEO" />
<meta property="article:tag" content="Open Graph" />

For video and audio pages, og:video:secure_url, og:video:type, og:video:width, og:video:height, and the equivalent og:audio:* tags enable inline playback on platforms that support it. For localized sites, repeat og:locale:alternate for each additional language so Facebook can serve the right regional preview.

Use og:type=profile for a person profile where it matches the Open Graph protocol, with supported profile properties. These describe the shared object; major AI providers do not document them as an author-verification or citation-ranking mechanism.

Open Graph Types: Which og:type Value to Use

og:type tells the platform what kind of object the URL is. Each URL gets exactly one value, and a page without og:type is treated as website, both by the protocol and by Facebook’s crawler (checked 30 October 2026).

og:type valueUse it forExtra properties it unlocks
websiteHome page, service, product and tool pages, anything without a publish dateNone beyond the basic tags
articleBlog posts, news, guidesarticle:published_time, article:modified_time, article:author, article:section, article:tag
profileA page about one personprofile:first_name, profile:last_name, profile:username
bookA page about one bookbook:author, book:isbn, book:release_date
video.movie, video.episode, video.tv_show, video.otherA page built around one videovideo:duration, video:release_date, video:director, video:actor
music.song, music.album, music.playlist, music.radio_stationA page built around one track, album or stationmusic:duration, music:album, music:musician

For most business sites the choice is simple: article on posts, website everywhere else. Pick profile for team or author pages, and use the video or music types only when the page exists for that one piece of media.

Open Graph Platform Behavior Compared

Compatible platforms can read Open Graph tags, but preview behavior varies by client, crawl access, image handling and cache. Do not treat a third-party size table as an immutable platform contract.

CheckPractical action
Shared title and imageSupply accurate core OG fields in the server-rendered head
Image accessCheck a public absolute HTTPS image URL, successful response and supported content type
Crop and readabilityStart with a landscape image such as 1200 × 630, keep essential text away from edges and inspect the actual preview
X cardsSupply the appropriate Twitter card fields and check the resulting card
Stale previewUse the platform’s available inspection or refresh flow, then test the shared link again
Channel-specific imageCreate one when the actual channel and crop justify it, rather than assuming one asset renders identically everywhere

These are testing steps, not claims that every platform needs the same minimum dimensions or caches for a fixed number of days. The Open Graph protocol defines fields; the receiving product controls presentation.

OG Image Size by Platform (og:image Dimensions)

The safe default og:image size is 1200 x 630 pixels (1.91:1), JPG or PNG, under 5 MB. Facebook recommends at least 1200 x 630 and caps files at 8 MB, LinkedIn lists 1200 x 627 as its minimum with a 5 MB limit, and X’s large image card uses a 2:1 ratio (official docs, checked 30 October 2026). The other rows are common working values rather than published limits:

PlatformDimensionsAspect ratioMax file sizeFormat
Facebook1200x6301.91:18 MBJPG, PNG
LinkedIn1200x6271.91:15 MBJPG, PNG
X (large card)1200x6002:15 MBJPG, PNG, WEBP, GIF
X (summary)400x4001:15 MBSame
Slack1200x6301.91:1-JPG, PNG
Discord1280x6402:18 MBJPG, PNG, WEBP, GIF
WhatsApp1200x6301.91:1~300 KB idealJPG, PNG
iMessage1200x1200 or 1200x6301:1 or 1.91:1~5 MBJPG, PNG
Telegram1200x6301.91:15 MBJPG, PNG
Pinterest1000x15002:320 MBJPG, PNG

Text overlay rules that survive every platform:

  • Keep all text, logos, and key visual elements within the central 80 percent of the canvas. LinkedIn crops ~5 percent on each side on some viewports; X trims the top and bottom on some clients.
  • Never rely on text smaller than 32 px. Share cards render at roughly 360 px wide in most feeds, so your 32 px becomes ~10 px, already near illegibility.
  • Put your brand in a consistent position. Bottom-left or top-right are the two spots least affected by platform cropping.
  • Use high contrast. Social feeds are cluttered, and low-contrast imagery loses every time.

To check the OG image itself, open the og:image URL in a private window, confirm it returns 200 with an image Content-Type (the curl check in the troubleshooting section below does both), and compare its pixel size with the table above. Then run the page through Facebook’s Sharing Debugger, which reports when it cannot download the image. For the broader image rules (alt text, file format choices, CDN delivery), see our image SEO guide.

Twitter Card Tags: When You Still Need Them

X reads property="og:..." and falls back to OG values for missing twitter: tags. Which means the minimal X-friendly setup is a single extra line:

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

That plus your existing OG tags produces a full-bleed image card on X. You only need the full set if X is a meaningful distribution channel or if you want different copy or imagery there:

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@webaloha" />
<meta name="twitter:creator" content="@olegcapo" />
<meta name="twitter:title" content="Open Graph Tags: List, Examples and og:image Size" />
<meta name="twitter:description" content="Open Graph tags list, examples, og:image sizes and how to check tags." />
<meta name="twitter:image" content="https://webaloha.co/images/og/open-graph-guide.jpg" />

Explicit Twitter tags give you control over truncation (X truncates titles around 70 characters and descriptions around 200) and let you switch imagery per platform if you want X-native artwork.

The 11 Reasons Your og:image Is Not Showing

If a platform is rendering your link without the image, the problem is almost always one of these, roughly in order of frequency:

  1. Relative URL. A relative image URL can be resolved inconsistently. Use an absolute public HTTPS URL including the domain.
  2. HTTP, not HTTPS. Several platforms refuse non-HTTPS images outright. Also set og:image:secure_url if you serve a mixed environment.
  3. Platform cache is stale. You updated the image; the platform is still showing the old one. Force-refresh via the platform’s debugger (see next section).
  4. Image below minimum dimensions. LinkedIn lists 1200x627 as its minimum and shows images under 401 px wide as small thumbnails. Facebook’s absolute minimum is 200x200. Always default to 1200x630 or larger.
  5. File size too large. WhatsApp skips images over ~300 KB on mobile. Facebook caps at 8 MB. Compress before deploying.
  6. Wrong or missing file extension. Some crawlers infer type from the URL. Use .jpg, .jpeg, or .png. WebP is supported on X but inconsistent elsewhere.
  7. Image behind auth, CDN rules, or hotlink protection. Crawlers are not logged in. Test the image URL in an incognito window; if it 401s or 403s, the crawler will too.
  8. robots.txt or bot-protection blocking the crawler. Cloudflare bot-fight mode, AWS WAF, and aggressive robots.txt rules block FacebookExternalHit, LinkedInBot, TwitterBot, TelegramBot, and Slackbot. Allow these user agents explicitly in your bot rules and robots.txt.
  9. Redirects. Each redirect hop is a chance for the crawler to bail. Keep OG image URLs as direct 200 responses.
  10. CORS or hotlink headers stripping the crawler. Some CDNs refuse requests without a Referer header. Check your CDN’s bot rules.
  11. Mismatch between og:image and og:url origins. Serving the image from a different domain than the page sometimes triggers validation errors on LinkedIn. Keep them on the same domain where possible, or pre-warm the cache with both.

A diagnostic shortcut: run curl -A "facebookexternalhit/1.1" -I https://yourdomain.com/path/og.jpg from a terminal. If you get a 200 OK with Content-Type: image/jpeg and a reasonable file size, the image is reachable for Facebook and most other crawlers. If you get a 403, 404, or a challenge page, you have found the bug without having to touch a single platform debugger. Repeat with LinkedInBot, TwitterBot, and TelegramBot as user agents if a specific platform is failing.

Run a broken URL through our Open Graph Checker to see which tags the crawlers actually parse. It catches most of the issues above in one pass. Starting from scratch? Our Open Graph Generator writes the full tag set for you to paste into your <head>.

Open Graph and AI Search: The Evidence Boundary

Open Graph is documented as a link-preview protocol. The major AI search providers do not publicly document it as a ranking signal, a citation selector, or a fallback for missing JSON-LD. It is therefore not defensible to promise AI visibility gains from OG tags alone.

Keep the layers separate:

LayerDocumented purposeWhat to verify
Open GraphShared-link title, description, image, type, and URLInspect an actual preview on each important distribution platform
Schema.org / JSON-LDStructured description of entities and page contentValidate vocabulary and ensure markup matches visible content
Search and AI eligibilityProvider-specific crawling, indexing, snippet, and content policiesFollow official Google, OpenAI, Perplexity, or other provider documentation

Google’s AI features guidance, for example, says no special AI markup is required and points publishers back to normal Search eligibility and snippet controls. OpenAI’s publisher guidance focuses on crawler access and referral attribution rather than Open Graph.

Good OG hygiene is still worthwhile: it keeps shared titles, summaries, images, and canonical URLs consistent. Just evaluate it through preview accuracy and referral behavior, not an unverified citation claim. For structured-data work, use the separate schema markup guide.

Open Graph Implementation in Astro, Next.js, and WordPress

Three short, practical examples.

Astro (dynamic OG per page):

---
// src/layouts/BaseLayout.astro
const { title, description, image, type = "website" } = Astro.props;
const canonical = new URL(Astro.url.pathname, Astro.site).toString();
const ogImage = new URL(image ?? "/og-default.jpg", Astro.site).toString();
---
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:type" content={type} />
<meta property="og:url" content={canonical} />
<meta property="og:image" content={ogImage} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:site_name" content="Web Aloha" />
<meta name="twitter:card" content="summary_large_image" />

Next.js (App Router metadata API):

// app/blog/[slug]/page.tsx
export async function generateMetadata({ params }) {
  const post = await getPost(params.slug);
  return {
    title: post.title,
    description: post.description,
    openGraph: {
      title: post.title,
      description: post.description,
      type: "article",
      url: `https://example.com/blog/${post.slug}/`,
      images: [{ url: post.ogImage, width: 1200, height: 630 }],
      publishedTime: post.publishedAt,
    },
    twitter: { card: "summary_large_image" },
  };
}

WordPress: Yoast SEO and Rank Math both emit OG tags automatically from the post title, excerpt, and featured image. Override per-post in the “Social” tab when the defaults are not what you want. If you hand-code your theme, drop the tag block into header.php inside the <?php wp_head(); ?> output and pull values from get_the_title(), get_the_excerpt(), and get_the_post_thumbnail_url($post, 'full'). A common WordPress gotcha: both Yoast and Rank Math will happily emit OG tags, and if both plugins are active you can end up with two og:image tags on the same page. Some crawlers pick the first, some pick the last, and you get inconsistent previews. Pick one plugin and deactivate the other’s social module.

How to Check and Debug Open Graph Tags

To check Open Graph tags quickly, paste the URL into our Open Graph Checker: it shows the tags a crawler parses from the raw HTML. Then refresh each platform’s cache. The workflow we use on every client launch, in order:

  1. Facebook Sharing Debugger: parses the URL, shows Facebook’s last scrape, and lets you “Scrape Again” to force a cache refresh. This also covers WhatsApp and Instagram because they share Meta’s crawler.
  2. LinkedIn Post Inspector: the only way to refresh LinkedIn’s cache. If the image is wrong on LinkedIn, you have to re-inspect after every edit.
  3. X Card Validator (retired as a standalone tool; paste the URL into X’s composer to preview): shows exactly how the card will render, including truncation.
  4. Telegram @WebpageBot: send the URL in a DM to refresh Telegram’s cache. Maximum 10 URLs per day.
  5. Slack: paste into a private channel; Slack regenerates on every fresh paste if the URL is unchanged, or you can append a dummy query param (?v=2) to force a re-scrape.
  6. A tag inspector of your own: before you test platform-by-platform, confirm what is actually being served. View source, Chrome DevTools Elements panel, or a server-side fetch will all show you the rendered head.

Cache-busting pattern: if you absolutely need a share to re-scrape and platform debuggers are not available, append a throwaway query string (?v=2026-04-18). Most crawlers treat different query strings as different URLs. Use this sparingly; it fragments share counts if abused.

Pre-launch ritual. Before any major content launch or homepage refresh, we run every canonical URL through Facebook’s debugger and LinkedIn’s inspector once to pre-warm the cache. That way the first real share from a subscriber or stakeholder gets the correct preview immediately instead of Meta or LinkedIn discovering the page live and caching whatever intermediate state they find.

For broader head-tag audits across a site, combine the OG check with our Meta Tag Checker.

How to fix og:url not matching the canonical

A mismatch usually means one of the two values is stale. Compare four URLs side by side: the URL that was shared, the final URL after redirects, the rel="canonical" value and the og:url value. Our Open Graph Checker shows the last three in one report. Example from a typical migration:

WhatValue
Shared URLhttp://example.com/blog/pricing?utm_source=newsletter
Final URL after redirectshttps://example.com/pricing/
Canonicalhttps://example.com/pricing/
og:urlhttps://example.com/blog/pricing

Here the redirect and canonical agree, so the canonical is right and og:url is the stale value: a theme or SEO plugin still writes the old path. Fix it at the source (the plugin’s social settings or the layout that builds the tag) so og:url is generated from the same value as the canonical, as in the Astro example above. If the canonical is the wrong one instead, fix the canonical first. Then rerun the check and press “Scrape Again” in Facebook’s Sharing Debugger so the old preview is replaced.

Open Graph Implementation Checklist

For every shareable page:

  • og:title, og:type, og:image, og:url present
  • og:description, og:site_name, og:locale present
  • og:image is an absolute HTTPS URL, at least 1200x630, under 5 MB, JPG or PNG
  • og:image:width, og:image:height, og:image:alt set
  • twitter:card=summary_large_image set (explicit twitter:* tags if X matters)
  • article:published_time, article:modified_time, article:author set on blog posts
  • Theme-color meta tag set for Discord embed branding
  • og:url matches canonical URL exactly
  • Tested through Facebook Debugger and LinkedIn Post Inspector
  • Important text kept inside the central 80 percent of the OG image
  • OG image origin not blocked by robots.txt, WAF, or CDN rules

Where Open Graph Fits in Your 2026 Stack

Open Graph remains a practical link-preview layer. Put the tags in your shared layout or CMS, keep them aligned with the canonical URL and visible page, and retest whenever titles, images, domains, or platform requirements change.

The mental model we recommend to clients: OG tags are cheap, durable, and compound. An hour of setup today pays off every time your content is shared, quoted, or cited for as long as the page lives. Very few things in SEO and GEO offer that ratio in 2026.

If you want this implemented across your site, or audited as part of a broader technical SEO review, that is what our web design and SEO services teams do on every launch.

Recommended tools

Recommended tools for this guide

Use these free tools to apply the ideas from this guide to your own website.

Useful info? Spread the Aloha:

Lucky Oleg

Lucky Oleg is the founder of Web Aloha, a web design & SEO agency helping businesses ride the digital wave. With years of experience in WordPress, technical SEO, and web performance, he writes about what actually works in the real world.