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 apropertyattribute naming the field and acontentattribute 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 aprefixattribute, as inprefix="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 asvideo.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(formatlanguage_TERRITORY, defaulten_US),og:locale:alternate,og:determiner,og:audioandog: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:heightandog:image:alt. - Proven The spec says pages that set
og:imageshould setog:image:alt, a description of what the image shows rather than a caption. - Proven
og:videotakes the same structured properties asog:image;og:audiotakes 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 examplevideo.movie), plus types with no vertical such asarticle,book,profileandwebsite. - 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:imageandfb:app_idas basic tags, and says likes and shares are aggregated at theog:urladdress. - Proven Its guidance for
og:descriptionis 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.