Open Graph metadata
og:audio
Provides the URL of an audio file that accompanies the Open Graph object.
Code examples
Good example
<meta property="og:audio" content="https://example.com/birdsong.mp3">An absolute, public URL to the audio file.
Good example
<meta property="og:audio" content="https://example.com/podcast/episode1.ogg">Another valid audio URL. Playback support still depends on the consumer.
Avoid this example
<meta property="og:audio" content="file:///home/user/birdsong.mp3">A local file URL cannot be fetched from the web.
Avoid this example
<meta property="og:audio" content="/audio/birdsong.mp3">Use an absolute URL so consumers do not have to resolve a relative path.
Recommendations
- 01Use a Public URLThe consumer fetching your metadata must also be able to fetch the audio without signing in.
- 02Describe the FileAdd og:audio:type after this property when you know the file’s MIME type.
Related documentation
Related meta tags
og:audio
propertyProvides 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.
og:audio:secure_url
propertyProvides 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.
og:audio:type
propertyProvides 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
propertyAn 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.
og:description
propertyProvides 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.