Skip to main content
Signocore

What is Open Graph?

Open Graph is a set of meta tags that controls how a web page appears when someone shares its link: the title, the description and the image in the preview card on Facebook, LinkedIn, Slack, Discord, iMessage and many other apps. Without the tags, each platform guesses, and the result is often a random image or a cut-off title.

Facebook introduced the Open Graph protocol in 2010. It has since become the standard format for link previews, well beyond Facebook.

The core tags

Open Graph tags are meta tags in the page's head that use the property attribute:

  • og:title: the title for the preview, which can differ from the page's title tag.
  • og:description: one or two sentences shown under the title.
  • og:image: the absolute URL of the preview image.
  • og:url: the page's canonical address, so shares of different URL variants count as one page.
  • og:type: the kind of content, such as website or article.

An image of 1200 by 630 pixels works well across platforms. Keep the important parts away from the edges, since some apps crop the image to a square.

X and other platforms

X, formerly Twitter, uses its own twitter: tags, such as twitter:card, but falls back to Open Graph for the title, description and image when its own tags are missing. Setting twitter:card to summary_large_image is usually the only extra tag needed.

Testing and caching

Platforms cache a preview the first time a link is shared, often for days. After changing an image or title, refresh the cache with Facebook's Sharing Debugger or LinkedIn's Post Inspector, and check the result before sharing again. Open Graph tags are not a ranking factor, but a clear preview gets more clicks when a page is shared, which is reason enough to set them on every page.

Also known as

Open Graph protocol OG tags

Free tool

SEO Analyzer

See how this concept plays out on a real page. Over 50 on-page, technical and schema checks, each with the exact fix. No signup.

Analyze a URL

Have a question?

Get in touch if you'd like to learn more about this topic.