使用开放图谱在 Facebook 上分享音频

Sharing audio on facebook using open graph

我正在尝试使用 og 标签在 Facebook 上分享音频内容,以便音频只能在 Facebook window 中播放。

这是我写的代码:

<html>
<head>
<meta property="og:url" content="https://www.songdew.com/test_manish.html"/>
  <meta property="og:image" content="https://s3-ap-southeast-1.amazonaws.com/sgmedia/13122/photos/t_ce0284c1ad98c8e79c3f3af7b8c297.jpg"/>
  <meta property="fb:app_id" content="335931163095578"/>
  <meta property="og:title" content="3. undead redemption" />
<link rel="canonical" href="https://www.songdew.com/test_manish.html"/>
<meta property="og:audio" content="https://s3-ap-southeast-1.amazonaws.com/sgmedia/18037/tracks/f7a43fcd2f8a15a0a1322bf3ac2429.mp3">
<!--<meta property="og:audio:title" content="manish23">
<meta property="og:audio:artist" content="Mkumar">
<meta property="og:audio:album" content="itsnew">  -->
<meta property="og:audio:type" content="application/mp3">
</head>

<title>This is test</title>

<style type="text/css">

#share-buttons img {
width: 35px;
padding: 5px;
border: 0;
box-shadow: 0;
display: inline;
}

</style>
<body>Thiis is a test Page


</body>

</html>

但是,音频不会在那里播放。我不明白这段代码中的问题是什么。感谢您的帮助!

您无法以某种方式共享音轨,以便它们立即内联播放。

正如 https://developers.facebook.com/docs/opengraph/music 在页面顶部明确指出的那样,目前仅对少数列入白名单的 Facebook 合作伙伴可用。

一种可能的替代方法是将其嵌入为视频 (flash and/or mp4)。无论你是让视频只播放音频,让视觉内容只是黑色或其他什么,还是使用视频来传输关于音轨的额外信息(比如谁是艺术家,也许是封面艺术,......),取决于你.