使用 FBML 在 Facebook 墙上嵌入自定义视频播放器/视频?
我正在尝试让视频 (flv) 或 swf 视频播放器在 Facebook 墙上运行,但是无论我做什么 - facebook 都会发布原始 fbml 并忽略代码。我做错了什么?
<fb:swf
swfsrc='http://www.domain.com/flv_player/Main.swf'
imgsrc='http://www.domain.com/large1.jpg'
allowscriptaccess=”all”
flashvars='config=http://www.domain.com/playerConfigEmbed/2179.xml'
width="384" height="283" />
我也尝试过fb:flv
<fb:flv src='http://www.domain.com/files/file.flv' width='400' height='300' title='my movie' color='#FFBB00' salign='r' img='http://www.domain.com/thumbs/large1.jpg' scale='showall'/>
I'm trying to get a video (flv) or an swf video player to work on Facebook walls, however no matter what I do - facebook posts the raw fbml and ignores the code. What am I doing wrong?
<fb:swf
swfsrc='http://www.domain.com/flv_player/Main.swf'
imgsrc='http://www.domain.com/large1.jpg'
allowscriptaccess=”all”
flashvars='config=http://www.domain.com/playerConfigEmbed/2179.xml'
width="384" height="283" />
I've also tried fb:flv
<fb:flv src='http://www.domain.com/files/file.flv' width='400' height='300' title='my movie' color='#FFBB00' salign='r' img='http://www.domain.com/thumbs/large1.jpg' scale='showall'/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用开放图元标签轻松地做到这一点。我在这里写了一个关于如何执行此操作的简短教程:http:// /ahrengot.com/tutorials/custom-video-player-on-facebook/
此方法还允许您为 iPhone 提供 HTML5 后备,甚至可以在 Facebook iPhone 应用程序中使用 - 我的示例设置为HTML5 后备也显示了该功能。
You can easily do this with Open Graph meta tags. I've written a short tutorial on how to do it right here: http://ahrengot.com/tutorials/custom-video-player-on-facebook/
This method will also allow you to have HTML5 fallback for iphones, which will even work in the Facebook iPhone app - My example is set up with HTML5 fallback that shows that functionality as well.
试试那个:
try that one:
确保自己放置标签
在创建
之前这将为您搭建一个与Flash沟通的桥梁。
然后:
如果这些使用免费托管,最有可能的事情是 Facebook 阻止您的 SWF 可视化。
Insure yourself of placing the label
<Fb:fbjs-bridge />
Before creating your
<fb:swf />
This will serve you to create a bridge to communicate with the Flash.
Then:
If these working with free Hosting the most probable thing is that Facebook prevents that your SWF is visualized.