使用开放图形在Facebook上共享音频 [英] Sharing audio on facebook using open graph

查看:227
本文介绍了使用开放图形在Facebook上共享音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用OG标签在Facebook上分享的音频内容,使音频应在Facebook的窗口中播放而已。

I am trying to share the audio content on facebook using og tags so that audio should play in the facebook window only.

下面是我写的code:

Here is the code which I have written:

<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>

但是,音频没有获得出场那里。我没有得到什么是这个code中的问题。任何帮助AP preciated!

However, the audio doesn't get played there. I am not getting what is the issue in this code. Any help is appreciated!

推荐答案

您不能让他们玩在线现在分享音轨的方式。

You can’t share audio tracks in a way so that they play inline right now.

由于 https://developers.facebook.com/docs/opengraph/music 正确的页面顶部明确规定,即只提供给有限的一组白名单Facebook的合作伙伴这一次。

As https://developers.facebook.com/docs/opengraph/music clearly states right on top of the page, that is only available to a limited set of white-listed Facebook partners as this time.

一个可能的选择是将其嵌入作为视频(闪存和/或MP4)。无论你作出这样的视频只是播放音频,并具有视觉内容仅仅是黑色或什么的,或者使用视频传输关于音轨的附加信息(如谁是艺术家,也许封面图案,...),达你。

A possible alternative is to embed it as a video (flash and/or mp4). Whether you make that video just play the audio, and have the visual content just be black or whatever, or use the video to transport additional information about the audio track (like who’s the artist, maybe a cover artwork, …), is up to you.

这篇关于使用开放图形在Facebook上共享音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆