Open Graph metadata

og:video:width

Provides the width, in pixels, of the preceding og:video resource.

Code examples

Good example
<meta property="og:video:width" content="1920">
Declares a video that is 1920 pixels wide.
Good example
<meta property="og:video:width" content="1280">
Valid when the actual video is 1280 pixels wide.
Avoid this example
<meta property="og:video:width" content="1920px">
Open Graph expects the integer pixel count, without a unit.
Avoid this example
<meta property="og:video:width" content="1920">
Wrong if the referenced video is actually 1280 pixels wide.

Recommendations

  • 01
    Match the Video
    Read the actual pixel width from the video. Do not describe its CSS display size.
  • 02
    Keep Aspect Ratio Consistent
    Place width and height after the og:video they describe, before declaring another video.

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.