使用开放图形在facebook上共享音频



我正在尝试使用og标签在facebook上共享音频内容,以便音频只能在facebook窗口中播放。

这是我写的代码:

<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和/或mp4)。无论你是制作视频只是播放音频,视觉内容只是黑色或其他什么,还是使用视频来传输关于音轨的额外信息(比如谁是艺术家,也许是封面艺术作品,…),都取决于你。

最新更新