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

Extended Open Graph Properties

Using og:site_name, og:locale, og:audio, og:video, and article-specific properties for enhanced sharing.

Extended Open Graph Properties

What you'll learn: How to use specialized Open Graph properties like og:site_name, og:locale, og:audio, og:video, and article-specific tags to create richer social media sharing experiences.

Beyond the Basics

You've already covered the essential Open Graph properties (og:title, og:description, og:image, og:url), but the protocol offers many more properties that enhance how your content appears when shared. These extended properties provide additional context and enable richer media previews.

Site-Wide and Localization Properties

og:site_name identifies the overall website name, separate from the page title. Think of it like a newspaper name versus the article headline:

<meta property="og:site_name" content="TechDaily">
<meta property="og:title" content="Latest AI Breakthrough Revealed">

og:locale specifies the language and region of your content:

<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="es_ES">
<meta property="og:locale:alternate" content="fr_FR">

Rich Media Properties

og:video and og:audio allow embedding multimedia directly in social previews:

<meta property="og:video" content="https://example.com/video.mp4">
<meta property="og:video:type" content="video/mp4">
<meta property="og:video:width" content="1280">
<meta property="og:video:height" content="720">

<meta property="og:audio" content="https://example.com/podcast.mp3">
<meta property="og:audio:type" content="audio/mpeg">

Article-Specific Properties

For news articles and blog posts, specialized properties provide publication metadata:

<meta property="og:type" content="article">
<meta property="article:published_time" content="2024-01-15T09:00:00Z">
<meta property="article:modified_time" content="2024-01-15T14:30:00Z">
<meta property="article:author" content="https://example.com/authors/jane-doe">
<meta property="article:section" content="Technology">
<meta property="article:tag" content="AI">
<meta property="article:tag" content="Machine Learning">

Key Takeaway: Extended Open Graph properties let you fine-tune social sharing with site branding, localization, rich media embeds, and content-type-specific metadata that platforms like Facebook use to create more informative previews.