如何创建像SoundCloud这样的动态Facebook时间线帖子

时间:2014-07-13 16:56:45

标签: facebook facebook-graph-api

从一个简单的SoundCloud链接粘贴到我的Facebook状态更新,然后Facebook检测到它是一个SoundCloud链接并在帖子中嵌入了一个不错的SoundCloud播放器:

enter image description here

我检查了SoundCloud页面上的元数据,发现只有一个OpenGraph条目og:site_name

<meta charset="utf-8" />
<title>SoundCloud - Hear the world’s sounds</title> 
<meta content="record, sounds, share, sound, audio, tracks, music, soundcloud" name="keywords" /> 
<meta content="Explore the largest community of artists, bands, podcasters and creators of music &amp; audio" name="description" /> 
<meta name="google-site-verification" content="dY0CigqM8Inubs_hgrYMwk-zGchKwrvJLcvI_G8631Q" /> 
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no" /> 
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!--[if IE]> 
<meta content="true" name="MSSmartTagsPreventParsing"> 
<meta content="false" http-equiv="imagetoolbar"> <![endif]--> 
<meta content="19507961798" property="fb:app_id" /> 
<meta content="SoundCloud" property="og:site_name" /> 
<meta content="soundcloud" property="twitter:site" /> 
<meta content="SoundCloud" property="twitter:app:name:iphone" /> 
<meta content="336353151" property="twitter:app:id:iphone" /> 
<meta content="SoundCloud" property="twitter:app:name:ipad" /> 
<meta content="336353151" property="twitter:app:id:ipad" /> 
<meta content="SoundCloud" property="twitter:app:name:googleplay" /> 
<meta content="com.soundcloud.android" property="twitter:app:id:googleplay" /> <link href="/sc-opensearch.xml" rel="search" title="SoundCloud Search" type="application/opensearchdescription+xml" />   <link rel="icon" href="https://a-v2.sndcdn.com/assets/images/sc-icons/favicon-154f6af5.ico" /> 
<meta name="application-name" content="SoundCloud" /> 
<meta name="msapplication-tooltip" content="Launch SoundCloud" /> 
<meta name="msapplication-TileImage" content="https://a-v2.sndcdn.com/assets/images/sc-icons/win8-38b02b00.png" /> 
<meta name="msapplication-TileColor" content="#ff5500" /> 
<meta name="msapplication-starturl" content="https://soundcloud.com" /> 

此外,我可以播放音乐,甚至更多花哨的自定义事件发生:

enter image description here

我已阅读有关Open Graph,自定义操作,对象等内容。我已经很好地浏览了Facebook文档,并且通过我的自定义应用程序的设置进行了播放,但我无法解决如何模拟SoundCloud所具有的功能。

0 个答案:

没有答案