Course contentsShow
← Web Development
Lesson 1837 of 2,98234. Metadata and SEOFree lesson

Essential Open Graph Properties

Implementing og:title, og:type, og:image, og:url, and og:description for rich social media previews.

Essential Open Graph Properties

You'll learn which five Open Graph meta tags are required to create rich social media preview cards when your content is shared.

What Are the Essential Properties?

When someone shares your webpage on Facebook, Twitter, LinkedIn, or other social platforms, those services read specific <meta> tags to create a preview card. The Open Graph Protocol defines five essential properties that control what appears in these previews.

Think of these properties as the "business card" your webpage hands to social media platforms—they tell the platform exactly how to introduce your content to users.

The Five Core Properties

og:title

The headline of your content as it should appear in social shares (not always identical to your <title> tag).

<meta property="og:title" content="Ultimate Guide to Web Performance">

og:type

The category of your content: website, article, video.movie, music.song, etc.

<meta property="og:type" content="article">

og:image

The preview image URL. Must be absolute (full URL including domain). Recommended minimum: 1200×630px.

<meta property="og:image" content="https://example.com/images/guide-preview.jpg">

og:url

The canonical URL of the page—the "official" address where this content lives.

<meta property="og:url" content="https://example.com/guides/web-performance">

og:description

A brief summary of the content. Complements the title in the preview card.

<meta property="og:description" content="Learn essential techniques to optimize load time and improve user experience.">

Why These Five Matter

Without these tags, social platforms guess—often poorly—what to show. With them, you control your content's first impression when shared.

Key Takeaway: The five essential Open Graph properties (og:title, og:type, og:image, og:url, og:description) give you complete control over how your content appears in social media preview cards.