我通过我的应用程序(demosrbt)使用以下api在Facebook墙上发布音乐。
https://api.facebook.com/method/stream.publish
它在墙上成功发布。但是我在从墙上播放歌曲时遇到未定义错误。
附件格式
{"media": [{"type": "mp3", "src": "http://onspire.onmobile.com/srbt/preview/IDEA_IND/1/6/b/rbt_testclip363_preview.mp3", "title": "title Testing", "artist": "artist Testing", "album": "Testing"}]}`
在embed中,src具有long值,而不是path
<embed width="300" height="29" flashvars="audio_log=https%3A%2F%2Fwww.facebook.com%2Fajax%2Fapplications%2Fmusicplayer%2Faudio_listen_log.php&show_title=1&fbt_artist=By&fbt_title=Title&fbt_album=Album&fbt_unavailable=Unavailable&src=***1b4419434e4753010941030a0025430d025e1c52045f11461f010a1d0011103442121e56055908445b21382b266d3a2d366f5c4d5a1c111f1f510037080b1446100f1b305e545f6c034208451d0d0b400a4240***&song=Test+Clip363&artist=test+artist363&album=testa+lbum363&width=300&height=29&user=100001643190330&log=no&showErrors=no&div_id=id_4e92f084dfd897660119695&swf_id=swf_id_4e92f084dfd897660119695&browser=Firefox+3.6&post_form_id=a98ccdcf8d075cd10c42139c777402fa&string_table=https%3A%2F%2Fs-static.ak.facebook.com%2Fflash_strings.php%2Ft91545%2Fen_US" wmode="opaque" scale="noscale" salign="tl" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#FFFFFF" name="swf_id_4e92f084dfd897660119695" id="swf_id_4e92f084dfd897660119695" style="" src="https://s-static.ak.facebook.com/rsrc.php/v1/y2/r/JvWzcSQ5kI0.swf" type="application/x-shockwave-flash">
提前感谢,为此提供解决方案。