Open Graph metadata

og:video

Provides the URL of a video resource that complements the Open Graph object.

Code examples

Good example
<meta property="og:video" content="https://example.com/path/to/video.mp4">
An absolute URL to a public video resource.
Good example
<meta property="og:video" content="https://cdn.example.com/trailers/launch.webm">
A video resource hosted on another origin is also valid.
Avoid this example
<meta property="og:video" content="/path/to/video.mp4">
Use an absolute URL so every consumer resolves the same resource.
Avoid this example
<meta property="og:video" content="file:///home/user/video.mp4">
A local file URL cannot be fetched from the web.

Recommendations

  • 01
    Use Absolute URLs
    Choose a public resource URL that consumers can fetch without cookies or authentication.
  • 02
    Add Video Details
    Put type, width, height, and alt properties immediately after the video they describe.

Related documentation

Related meta tags

og:audio

property

Provides the URL of an audio file that accompanies the Open Graph object.

<meta property="og:audio" content="https://example.com/birdsong.mp3">
An absolute, public URL to the audio file.

Provides an alternate HTTPS URL for the audio declared by the preceding og:audio property.

<meta property="og:audio:secure_url" content="https://example.com/music/song.mp3">
A valid HTTPS alternate for the audio resource.

Provides the MIME type of the audio resource declared by the preceding og:audio property.

<meta property="og:audio:type" content="audio/mpeg">
The registered media type for MP3 audio.

og:audio:url

property

An alias of og:audio. It provides the URL of an audio file that accompanies the object.

<meta property="og:audio:url" content="https://example.com/audio.mp3">
An absolute URL to the audio file.

Provides a one or two sentence description of the Open Graph object.

<meta property="og:description" content="A practical guide to choosing and caring for indoor plants in low-light rooms.">
Explains the subject in one specific sentence.