Free auditStart free
GlossaryGlossary · On-page SEO

Open Graph

Open Graph is a protocol of meta tags that turns a web page into a rich object when shared. See the four required properties and a working example.

3 min
read
2
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
In one line

Open Graph is a protocol that lets any web page become a rich object in a social graph. You add meta tags to the page's head. Four properties are required: og:title, og:type, og:image, and og:url. ogp.me says it is used on Facebook to give any web page the same functionality as any other object on Facebook.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

How Open Graph works

Open Graph tags are meta elements in the page head with a property attribute that starts with og:. The protocol is documented at ogp.me. Each platform decides how it uses the tags, so test where your links get shared.
Minimal Open Graph tags
<head>
  <meta property="og:title" content="How to bake chocolate chip cookies" />
  <meta property="og:type" content="article" />
  <meta property="og:url" content="https://example.com/blog/cookies" />
  <meta property="og:image" content="https://example.com/images/cookies.jpg" />
  <meta property="og:image:alt" content="A tray of warm chocolate chip cookies" />
</head>
02At a glance

Required properties

Property

og:title

What it holds
The title of the object as it should appear in the graph
Property

og:type

What it holds
The type of object, such as website, article, or video.movie
Property

og:image

What it holds
An image URL that represents the object
Property

og:url

What it holds
The canonical URL of the object, used as its permanent ID
03Checklist

Optional properties worth adding

  1. 01og:description: a short description of the object
  2. 02og:site_name: the name of the overall site
  3. 03og:locale: language and territory, such as en_US (the default)
  4. 04og:image:alt: the spec says a page that specifies og:image should specify og:image:alt
  5. 05og:image:width and og:image:height: image dimensions in pixels

The protocol doesn't prescribe an image size. Optional og:image:width and og:image:height declare the size, so check each platform's current guidance for recommended dimensions.

04Worth knowing

X (Twitter) cards

X reads its own twitter: meta tags, which are not part of the Open Graph protocol that ogp.me documents. X Developers' Cards FAQ says that at a minimum your page must contain a twitter:card meta tag specifying a valid card type, or "suitable OpenGraph fallback tags". So suitable Open Graph fallback tags can stand in for the twitter:card tag.

Tags must be static

The FAQ says the crawler and validator cannot execute JavaScript, so tags added on page load, for example by a JavaScript framework or a tag manager, are not seen. Run the curl command above and look for the tags in the head.

Allow the crawler

Make sure robots.txt allows access to X's crawler, and check the robots.txt of any other domain that hosts your images.

Use absolute image URLs

The FAQ checklist says to use an absolute and full URL including the https protocol, not a relative one.

Old card types fall back

The FAQ says Product, Gallery and Photo cards were removed in mid-2015 and render as summary cards, and App cards render as summary cards as of early 2022.

Preview by posting

As of mid 2022 the Card Validator no longer previews cards, and X recommends pasting your URL into a post composer in its mobile apps or website.

Check what Twitterbot sees
curl -v -A Twitterbot https://example.com/page
05Checklist

Common mistakes

First2
Leaving out one of the four required properties
Setting og:url to a URL that differs from the page's canonical URL
Next1
Pointing og:image at a URL that does not load; the property should be an image URL that represents the object
Then1
Copying the homepage tags to every page so all shares look identical
06How it works

Test your tags

  1. 1

    Check the source

    View the page source and confirm each og: tag is in the head of the served HTML.

  2. 2

    Run a platform debugger

    ogp.me lists the Facebook Object Debugger as Facebook's official parser and debugger. Use it, or the equivalent tool on each platform you care about, to see what the platform reads from your URL.

  3. 3

    Share a real link

    Post the URL in a private chat or channel and check the title, image, and description.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • ogp.me
  • x.com
  1. 01The Open Graph protocologp.me · checked 2026-10-25
  2. 02Card error, unable to render, or no image: READ THIS FIRST | X Developers Community, Cards FAQdevcommunity.x.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Does Open Graph affect Google rankings?

The Open Graph specification describes how a page is represented when shared and makes no claims about search rankings. The tags matter to platforms that read them, such as Facebook.

02Do I also need Twitter Card tags?

Not always. X Developers' Cards FAQ says a page needs at least a twitter:card meta tag with a valid card type, or suitable OpenGraph fallback tags. The twitter: tags are not part of the Open Graph spec, so ogp.me does not cover them.

03Which Open Graph tags are required?

Four: og:title, og:type, og:image, and og:url. Others such as og:description and og:site_name are optional.

04Can each page have its own og:image?

Yes. Each page is its own object, so give each page its own title, URL, and image.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly