【问题标题】:Sharing audio on facebook using open graph使用开放图在 Facebook 上共享音频
【发布时间】:2016-04-09 18:37:25
【问题描述】:

我正在尝试使用 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>

但是,音频不会在那里播放。我没有得到这段代码中的问题。任何帮助表示赞赏!

【问题讨论】:

    标签: html facebook facebook-graph-api audio facebook-opengraph


    【解决方案1】:

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

    正如https://developers.facebook.com/docs/opengraph/music 在页面顶部明确指出的那样,这一次仅适用于有限的 Facebook 白名单合作伙伴。

    一种可能的替代方法是将其嵌入为视频(flash 和/或 mp4)。您是否制作该视频只是播放音频,并将视觉内容只是黑色或其他,或者使用视频来传输有关音轨的附加信息(例如谁是艺术家,也许是封面艺术......),取决于你。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多