上传到 Facebook 的 mp3 未显示在 iPhone 或 Android 上的 Facebook 应用程序中
我正在开发一个应用程序,允许用户将 mp3 文件上传到 Facebook 好友的留言墙上。一切运作良好。如果我使用 IE 或 Safari 查看 facebook 中朋友的个人资料页面,我可以看到预期的文本,并且 mp3 的播放图标就在那里。我可以单击播放按钮并听到音频。但是,如果我通过 facebook、iPhone 或 Android 应用程序查看朋友的个人资料,则会显示文本,但不存在 mp3。
我已经四处寻找解决方案,但现在被难住了!任何帮助或指导将不胜感激。
dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"blah:\",\"caption\":\"%@\",\"description\":\"link text\",\"media\":[{\"type\":\"mp3\",\"src\":\"http://www.blah.com/audio.mp3\",\"title\":\"song name\",\"artist\":\"singer\",\"href\":\"http://www.blah.com/\"}]}", friendsTableView.chosenName, @" "];
I'm developing an app that allows the user to upload an mp3 file to a facebook friend's wall. It's all working well. If I look at the friend's profile page in facebook using IE or Safari, I can see the expected text and the play icon for the mp3 is there. I can click the play button and hear the audio. But, if I view the friend's profile through the facebook iPhone or Android app, the text appears but the mp3 isn't there.
I've searched high and low for a solution to this and am now stumped! Any help or guidance would be greatly appreciated.
dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"blah:\",\"caption\":\"%@\",\"description\":\"link text\",\"media\":[{\"type\":\"mp3\",\"src\":\"http://www.blah.com/audio.mp3\",\"title\":\"song name\",\"artist\":\"singer\",\"href\":\"http://www.blah.com/\"}]}", friendsTableView.chosenName, @" "];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
结果问题出在 facebook 本身而不是我的代码上。我上传的文件现在可以按预期显示和播放。
Turned out the problem was down to facebook itself rather than my code. My uploaded files are now showing and playing as expected.
值得注意的是,在最后一天左右,Facebook 中的嵌入式 mp3 音频播放器再次出现故障,因此上传的 MP3 文件无法正常播放。 已通过 Facebook 记录:http://developers.facebook.com/bugs/163200820438523
这 这是一个误导性的问题,因为很容易认为该错误存在于您自己的代码中。
Worth noting that for the last day or so, the embedded mp3 audio player in facebook is broken again so uploaded MP3 files are not playing correctly. This has been logged with fb: http://developers.facebook.com/bugs/163200820438523
It's a mis-leading problem as it's easy to think the bug is in your own code.