Why is og:audio meta tag useful and how do you use it?
Experience Level: Medior
Tags: HTMLOpen Graph Protocol
Answer
The meta tag with an attribute property
that has a value og:audio
defines an absolute URL of an audio file that points to an audio that enriches your web page. The audio URL will be added to the Open Graph object. The audio URL is stored in a value of an attribute content
.
By adding a meta tag with this property, you define an absolute URL of an audio file that the social networks will be able to read and display to their users.
A web page that has Open Graph Protocol meta tags enables the page to become an open graph object. This object can then be exported to social networks or other 3rd party systems that understand Open Graph Protocol.
<head>
<meta property="og:audio" content="https://www.bettercoder.io/audio/theme.mp3" />
</head>
Related Open Graph Protocol job interview questions
When you share a link to your web page on Facebook or LinkedIn, the social network doesn't show an image and a right title and description for your post. How will you fix this?
HTMLOpen Graph Protocol MediorWhat is Facebook Sharing Debugger and why would you use it?
HTMLOpen Graph Protocol MediorWhy is a meta tag property og:video useful and how do you use it?
HTMLOpen Graph Protocol MediorWhy is og:site_name meta tag useful and how do you use it?
HTMLOpen Graph Protocol MediorWhy is og:description meta tag useful and how do you use it?
HTMLOpen Graph Protocol Medior