What Is Open Graph? The Complete Guide to Open Graph Tags
Open Graph is a set of meta tags in a page's <head> that tells Facebook, LinkedIn, Slack, WhatsApp, X and other apps which title, description and image to show when someone shares a link to that page. Without them, each platform guesses, and the preview often comes out with the wrong image or no image at all. This guide explains what Open Graph is in plain English, lists every Open Graph tag with the image sizes platforms expect, shows how Twitter Cards and ordinary meta tags fit around it, and covers why a correct set of tags can still show a broken preview.
What is Open Graph?
Open Graph is a set of meta tags that tells other websites and apps how to show your page when someone shares a link to it. Facebook created the protocol so that any web page could be represented with a title, a description, an image and a type, and published it as an open specification at ogp.me. Today LinkedIn, Slack, Discord, WhatsApp, iMessage and many other link-preview systems read the same tags.
The problem it solves is control. Without Open Graph tags, a platform has to guess what your preview should look like: it might pick the first image it finds (often a logo or an icon), cut a random sentence from the page as the description, or show a bare URL. With them, you decide exactly what the card says and shows. The spec requires four properties on every page: og:title, og:type, og:image and og:url.
Open Graph tags look like ordinary meta tags but use a property attribute with an og: prefix (<meta property="og:title" content="...">) instead of name. Plain meta tags such as the description are written mainly for search engines, while Open Graph tags are written for social platforms and messaging apps. You can write them by hand or build a complete set in the Open Graph tag generator, which previews the share card as you type.
Open Graph tags at a glance
These are the Open Graph tags almost every page needs. The first four are the ones the protocol requires; the rest are optional but worth adding.
| Tag | What it sets in the preview | Required? |
|---|---|---|
og:title | The bold headline of the card | Yes |
og:type | What kind of page it is, usually website or article | Yes |
og:image | The picture shown in the card, ideally 1200×630px | Yes |
og:url | The canonical address the share counts toward | Yes |
og:description | The line or two of text under the title | Recommended |
og:image:alt | A text description of the image for screen readers | Recommended |
og:site_name | Your site's name, shown by some platforms above the title | Optional |
og:locale | The page's language and region, defaulting to en_US | Optional |
How to add Open Graph tags to a page
- Write one set per page. Each page needs its own title, description, image and URL; copying the homepage's tags onto every page makes every share look the same.
- Put them in the <head> of the HTML your server sends. Social crawlers don't run JavaScript, so tags that a client-side framework adds after load are never seen.
- Use a full https:// URL for og:image, pointing at a 1200×630px image that loads without a login.
- Test the live URL in Facebook's Sharing Debugger or LinkedIn's Post Inspector before you share it widely.
Most CMS platforms and SEO plugins can output these tags for you. If yours doesn't, or you want to check what it produces, fill in the fields of the Meta / OG Tag Generator and paste its output into your template.
Open Graph, field by field
A minimal, working Open Graph block looks like this:
<meta property="og:title" content="Frost Rank | Free SEO Tools">
<meta property="og:description" content="Free, no-signup SEO tools that run in your browser.">
<meta property="og:image" content="https://frostrank.com/og-image.png">
<meta property="og:url" content="https://frostrank.com/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Frost Rank">
- og:title / og:description — usually a close match to your page title and meta description, but they don't have to be identical. Some sites write a slightly punchier, more social-toned version for og:description since it's competing for attention in a feed rather than a search results list.
- og:image — the single highest-impact field. A card with no image, or a broken image URL, gets skipped over in a social feed almost every time regardless of how good the copy is. Use an absolute URL (not a relative path) — some platforms' crawlers won't resolve relative paths correctly. Make it 1200×630px and compress your OG image so it stays small: a PNG with photos or gradients at that size can easily pass 500 KB, and WhatsApp is reported to skip preview images over about 300 KB.
- og:type —
websitefor most pages,articlefor blog posts and news (unlocks extra fields likearticle:published_time),productfor e-commerce. - og:url — the canonical URL for this content. Should match your
rel="canonical"tag, not a tracking-parameter-laden variant.
og:type values: which one to use
og:type says what kind of thing the page is, and each type allows its own extra properties. Facebook treats a page with no og:type as website, so the tag mostly matters when a more specific type fits. Most link previews look the same whatever the type; what changes is the extra information the platform can read and attach.
| og:type | Use it for | Extra properties it allows |
|---|---|---|
website | Homepages, tool pages, landing pages and anything that isn't one of the types below | None beyond the basic tags |
article | Blog posts, news stories and guides | article:published_time, article:modified_time, article:author, article:section, article:tag |
product | Product pages in an online store | product:price:amount, product:price:currency |
profile | A page about one person, such as an author or team member page | profile:first_name, profile:last_name, profile:username |
video.movievideo.episodevideo.tv_showvideo.other | Pages built around a video | video:duration, video:release_date, video:director, video:actor |
music.songmusic.albummusic.playlist | Pages for a track, album or playlist | music:duration, music:album, music:musician |
A blog post marked up as an article looks like this:
<meta property="og:type" content="article">
<meta property="article:published_time" content="2026-09-05T09:00:00+00:00">
<meta property="article:modified_time" content="2026-10-31T09:00:00+00:00">
<meta property="article:author" content="https://example.com/authors/jane-doe">
<meta property="article:section" content="SEO">
<meta property="article:tag" content="Open Graph">
Dates are full ISO 8601 date-times, and article:author points to a profile page URL, not a plain name. Note that product isn't one of the types listed in the ogp.me spec itself; it's an extension that e-commerce platforms output widely. If you're unsure, use article for anything with a publish date and website for everything else.
Extended Open Graph properties worth knowing
- og:locale: the language and region of the page, written as
language_TERRITORY(for exampleen_USorfr_FR). It defaults toen_US, so it only matters when your page isn't in US English. - og:locale:alternate: other locales the same page is available in, one tag per locale. Useful on multilingual sites so a platform can pick the version that matches the reader.
- og:video: the URL of a video file that goes with the page. Some platforms can show a playable video or a video thumbnail in the card instead of a still image.
- og:audio: the URL of an audio file that goes with the page, such as a podcast episode or a song preview.
- article:tag: a keyword associated with an article. Repeat the tag once per keyword. It describes the article for platforms that read it; it doesn't change how the card looks.
Twitter Card tags and the fallback behavior
X checks for twitter:* tags first and only falls back to Open Graph for whatever's missing. The two card types that matter:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Frost Rank | Free SEO Tools">
<meta name="twitter:description" content="Free, no-signup SEO tools that run in your browser.">
<meta name="twitter:image" content="https://frostrank.com/og-image.png">
<meta name="twitter:site" content="@yourhandle">
summary_large_image renders a full-width image card; plain summary renders a small square thumbnail next to the text. Since large-image cards get meaningfully more visual real estate in a feed, there's rarely a reason to choose summary deliberately once you have a decent 1200×630px image to use.
Open Graph vs. other meta tags: what each family controls
Open Graph shares the <head> with two other tag systems, and it helps to keep them apart:
- Core meta tags —
<title>,meta name="description",link rel="canonical", andmeta name="robots"— control how the page is indexed and how it appears in Google's organic search results. - Open Graph tags (
og:*) — a protocol originally built by Facebook, now read by most link-preview systems: LinkedIn, Slack, Discord, WhatsApp, and X as a fallback. They control the title, description and image shown when a link is pasted or shared. - Twitter Card tags (
twitter:*) — X's own tag set, checked before it falls back to Open Graph. They exist because X's card layouts (a large image vs. a small thumbnail) needed a control OG's spec doesn't have.
| Tag family | Prefix | Controls | Read by |
|---|---|---|---|
| Core meta tags | none | Search indexing & organic snippet | Google, Bing |
| Open Graph | og:* | Social share title/description/image | LinkedIn, Slack, Discord, WhatsApp, X (fallback) |
| Twitter Card | twitter:* | Card layout (large image vs. thumbnail) | X only |
They're independent — a page can have perfect Open Graph tags and a broken title tag, or vice versa — which is exactly why a generator that shows a live search preview and a live social preview side by side, like Frost Rank's Meta / OG Tag Generator, catches mismatches a plain text editor won't.
Title and meta description: the limits that actually matter
Google doesn't enforce a hard character limit — it truncates based on pixel width, which varies by character. In practice, staying under roughly 60 characters for a title and 155–160 characters for a description keeps almost everything from being cut off with an ellipsis in desktop search results. Going over isn't an error; it just means Google is likely to truncate your copy at an arbitrary point instead of your intended one, so the sentence should still make sense if it gets cut.
The description also isn't guaranteed to be used verbatim. Google generates its own snippet from on-page content whenever it decides that produces a better answer for the specific query someone searched — documented, intentional behavior, not a sign your description is being ignored across the board. Writing an accurate, specific description still raises the odds it gets used as-is.
Why a correct set of tags can still render broken
This is the single most common support question around Open Graph tags, and it's almost never a tag problem: Facebook, LinkedIn and X each cache a URL's preview the first time it's shared, and none of them re-check it automatically on your schedule. If you fix a broken og:image and immediately re-share the link, you'll often still see the old, broken preview — because the platform is serving its cached snapshot, not re-reading your page.
The fix is to force a re-scrape, not to edit the tags again:
- Facebook / Messenger — paste the URL into Facebook's Sharing Debugger and click "Scrape Again."
- LinkedIn — use LinkedIn's Post Inspector, which also forces a re-fetch.
- X — there's no public re-scrape tool; the cache generally clears after a period of days, or the moment X's crawler independently revisits the URL.
Common mistakes worth checking for
- Relative image URLs in og:image.
/images/og.pngworks in a browser but many social crawlers won't resolve it against the page's domain — always use the fullhttps://URL. - Duplicate or auto-generated titles across every page. A CMS default like "{Page Title} | {Site Name}" repeated with no real per-page customization gives Google little reason not to rewrite it, since it isn't distinguishing the page from any other.
- og:url pointing at the wrong canonical. If og:url includes a tracking parameter or a non-canonical variant of the URL, shares of that link fragment engagement metrics across two different tracked URLs instead of one.
- Missing twitter:card entirely. Without it, X falls back to Open Graph — usually fine, but you lose the explicit control over summary vs. summary_large_image.
Troubleshooting: when the preview still looks wrong
Most broken previews come down to one of four causes. Match what you see to the likely fix:
- No card at all: the tags aren't in the HTML your server sends (often because JavaScript adds them), or the platform's crawler is blocked.
- Card with no image: a relative og:image path, an image that's too small, or an image behind a login or bot firewall.
- Old title or image: the platform's cache. Force a re-scrape as described above.
- Fine on Facebook, wrong on WhatsApp or X: per-platform rules, such as a missing twitter:card or an oversized image.
For a step-by-step checklist that works through each cause in order, see our article on fixing Open Graph tags that aren't working. If the tags themselves need redoing, rebuild the whole set in the free Open Graph tag generator, which previews the share card before you publish.
Frequently asked questions
Open Graph is a set of meta tags that tells social networks and messaging apps how to show your page when someone shares a link to it: which title, description and image appear in the preview card. Facebook created the protocol and published it as an open standard at ogp.me, and today LinkedIn, Slack, Discord, WhatsApp, iMessage and X (as a fallback) all read it. The tags sit in the page's <head> and look like <meta property="og:title" content="...">. Read the full explanation.
The Open Graph protocol requires four: og:title, og:type, og:image and og:url. In practice you should also add og:description, because most platforms show it under the title, and og:image:alt to describe the image for screen readers. og:site_name and og:locale are optional extras. See every tag at a glance.
Not directly. Open Graph tags are not a Google ranking factor, and adding them won't move a page up in search results. Google does list og:title as one of the sources it can draw on when it writes a page's title link, but that changes how the result looks, not where it ranks. Where Open Graph matters is everything that happens after a link is shared: a card with the right image and title earns clicks and referral traffic from social feeds and chat apps, while a broken or generic preview gets scrolled past.
No — Google has confirmed the meta description is not a ranking factor. It also doesn't always use the one you write; Google dynamically generates a snippet from on-page content when it judges that snippet to answer the specific search query better. Writing a strong, accurate description still matters for click-through rate on the searches where Google does use it, which in practice is most of the time if the description is genuinely relevant.
Check four things in order. The og:image value must be a full https:// URL, not a relative path. The image must load for a crawler, so it can't sit behind robots.txt rules, a login, hotlink protection or a firewall that challenges bots. It must be big enough: Facebook needs at least 200×200px and recommends 1200×630px. And the tag must be in the HTML your server sends, because social crawlers don't run JavaScript, so tags a client-side framework adds after the page loads are invisible to them. If all four check out, the platform is probably still showing a preview it cached before your fix. See the troubleshooting summary.
Each platform caches the preview it fetched the first time someone shared the URL, and keeps serving that copy. Editing your tags doesn't clear it; you have to ask for a fresh fetch. Paste the URL into Facebook's Sharing Debugger and click "Scrape Again", or into LinkedIn's Post Inspector. X has no public tool, so its old card stays until the cache expires. Giving the new image a new file name also helps, because platforms can cache the image file separately from the page. See how to clear each platform's cache.
WhatsApp builds the preview when the link is typed and caches it, and there's no public tool to clear that cache. It is also strict about the image: large files are widely reported to fail, so a JPEG of a few hundred kilobytes is the safe choice. X reads twitter:* tags first and falls back to Open Graph for anything missing, but it shows the full-width image only when twitter:card is set to summary_large_image, and its crawler (Twitterbot) must not be blocked in robots.txt. When a preview works on Facebook but not on one of these two, one of these platform rules is usually the cause, not the tags.
Facebook and LinkedIn recommend 1200×630px (a roughly 1.91:1 ratio) — undersized images may render as a small thumbnail instead of the full-width card, and images below about 200×200px may not display at all. For X, pair 1200×630px with twitter:card set to summary_large_image to get the same full-width treatment there.
Open Graph alone works, because X falls back to it. Adding twitter:card gives you control over the large-image card on X. See how the X fallback works.
Google rewrites title tags it judges as too long, keyword-stuffed, mismatched to the page's actual content, or duplicated across many pages on the same site. This is documented, expected behavior, not a bug — the fix is a title that's already accurate, unique and within roughly 50–60 characters, which removes Google's main reasons to intervene.
Technically canonical is a <link rel="canonical"> element, not a <meta> tag, but it lives in the same <head> block and gets generated alongside meta tags in practice — which is why this guide and the Meta / OG Tag Generator both treat it as part of the same "page head" checklist. Its job is different from title/description: it tells search engines which URL is the authoritative version when the same content is reachable at more than one address.
Was this guide helpful?
Rate it and leave a comment — takes 10 seconds, and genuinely helps decide what to fix or build next.