Early Access

Open Graph Meta Tags

og:video

Learn how to use the og:video meta tag to improve your site.

Defines the URL to a video file or video page that complements the content of the web page. When shared on social media platforms, this video may be displayed as part of the preview.

Code Examples

<meta property="og:video" content="https://example.com/path/to/video.mp4" />
Specifies an absolute URL to a video file, ensuring it can be properly accessed and displayed when shared.
<meta property="og:video" content="https://example.com/page-with-video-embed" />
Specifies an absolute URL to a webpage that hosts a video, allowing a preview that includes the video to be generated when shared.
<meta property="og:video" content="/path/to/video.mp4" />
A relative URL that may not properly resolve when the webpage is shared on social media, potentially leading to a missing video preview.
<meta property="og:video" content="https://example.com/video-format-not-supported" />
Specifies a URL to a video in a format not widely supported by social media platforms, potentially leading to playback issues.

Recommendations

  • Use Absolute URLs
    Always specify the video URL as an absolute path to ensure it is correctly fetched by social media platforms when the webpage is shared.
  • Mind the Aspect Ratio
    Choose videos with aspect ratios that are naturally supported by most social media platforms (e.g., 16:9) to ensure the video displays properly without unintended cropping or letterboxing.

Related Documentation

Related Meta Tags

og:audio

property

Defines the audio content that will accompany your page when it is shared on social media platforms that support Open Graph.

<meta property="og:audio" content="http://example.com/birdsong.mp3">
Specifies an accessible MP3 audio file on a public server, which can be easily retrieved and played by the implementing social platform.

Defines the description of your content as you want it to appear when shared on social platforms like Facebook, LinkedIn, and others that adhere to the Open Graph protocol.

<meta property="og:description" content="Discover the top 10 SEO strategies to boost your website's traffic in 2023. Click to learn more!">
This is concise, actionable, and provides a clear benefit, encouraging users to click through.

A secure URL to an audio file to accompany your object within the Graph. Used when the standard og:audio tag URL does not support SSL.

<meta property="og:audio:secure_url" content="https://example.com/music/song.mp3">
A valid, secure URL to an MP3 file that is optimized for web usage and has broad format support.

Defines the MIME type of the audio content referenced in the og:audio tag, ensuring platforms like Facebook understand how to process the linked audio file.

<meta property="og:audio:type" content="audio/mpeg">
Indicates an MP3 audio file, which is widely supported and commonly used for music files.

og:audio:url

property

Specifies the URL of the audio content to be used as a rich object in a social graph. It is meant for integrating audio content that represents the page or is closely related to the content of the page, enhancing its representation on social media platforms.

<meta property="og:audio:url" content="https://example.com/audio.mp3">
Specifies a direct URL to an MP3 file representing the audio content associated with the page.