Open Graph protocol: og: tags and required fields

The Open Graph protocol is a set of og: meta tags in a page’s head that turn the page into a rich object in a social graph, and it requires four properties: og:title, og:type, og:image and og:url. The specification is published at ogp.me; it was originally created at Facebook and is based on RDFa.

Verified against the sources on 2026-11-25. Labels: Proven means the primary source we opened states it. Practice means widely used practice or secondary reporting the primary source does not confirm. Experimental means a proposal or draft.

What is the Open Graph protocol?

  • Proven The spec says it lets any web page become a rich object in a social graph, and that Facebook uses it so linked pages behave like other objects on its platform.
  • Proven Metadata is added as <meta> tags in the page <head>, each with a property attribute naming the field and a content attribute holding the value, for example <meta property="og:title" content="The Rock" />.
  • Proven The spec lists Dublin Core, link-rel canonical, Microformats and RDFa among the prior work it draws on.
  • Proven The og: namespace can be declared with a prefix attribute, as in prefix="og: https://ogp.me/ns#".

Which four properties are required?

  • Proven og:title: the title of the object as it should appear in the graph.
  • Proven og:type: the object type, such as video.movie; some types require further properties.
  • Proven og:image: the URL of an image that represents the object.
  • Proven og:url: the canonical URL of the object, used as its permanent ID in the graph.

What optional and structured properties exist?

  • Proven Optional fields include og:description (a one to two sentence description), og:site_name, og:locale (format language_TERRITORY, default en_US), og:locale:alternate, og:determiner, og:audio and og:video.
  • Proven Structured properties add detail to a root property after an extra colon: og:image:url, og:image:secure_url, og:image:type, og:image:width, og:image:height and og:image:alt.
  • Proven The spec says pages that set og:image should set og:image:alt, a description of what the image shows rather than a caption.
  • Proven og:video takes the same structured properties as og:image; og:audio takes only url, secure_url and type.

How do arrays and object types work?

  • Proven Multiple values are expressed by repeating the tag; where values conflict, the first tag on the page takes precedence.
  • Proven A structured property applies to the root tag declared just before it, so each repeated image can carry its own width and height.
  • Proven Object types are grouped into verticals: music (for example music.song), video (for example video.movie), plus types with no vertical such as article, book, profile and website.
  • Proven Pages without a type are treated as website. Custom types need a declared namespace prefix.

How does Facebook describe using these tags?

  • Proven Facebook’s webmaster sharing guide says that without Open Graph markup its crawler uses internal heuristics to guess the title, description and preview image.
  • Proven It lists og:url, og:title, og:description, og:image and fb:app_id as basic tags, and says likes and shares are aggregated at the og:url address.
  • Proven Its guidance for og:description is usually two to four sentences, longer than the one to two sentences the ogp.me spec describes.
  • Proven Images are cached by URL, so a replacement image needs a new URL; its Sharing Debugger shows which tags were scraped and triggers a fresh scrape.

What this page does not cover

  • How search engines, other social platforms or AI assistants choose to display or use Open Graph data.
  • Exact image size recommendations, which the ogp.me specification does not set.

Sources

  1. The Open Graph protocol (ogp.me)
  2. A Guide to Sharing for Webmasters (Meta for Developers)

Related guides