我想在 Facebook 墙贴上嵌入我自己的 HTML5(带有 Flash 备份)播放器。我正在使用 rails 和 ruby Koala。我已经看到了:https ://developers.facebook.com/docs/share/可以添加元标记,但它要么用于链接到我的网页,要么用于加载要加载的视频文件。
感谢是否有人可以帮助我:)
http://www.longtailvideo.com/support/blog/19150/publish-your-videos-to-facebook-with-a-jw-player
这是共享链接上的 og:tags 示例,因此 facebook 可以获取客户视频播放器:
<meta property="og:type" content="movie" />
<meta property="og:video:height" content="260" />
<meta property="og:video:width" content="420" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:title" content="Big Buck Bunny" />
<meta property="og:description" content="Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation." />
<meta property="og:image" content="http://www.example.com/bunny.png" />
<meta property="og:video" content="http://www.example.com/jwplayer/player.swf?file=http%3A%2F%2Fwww.example.com%2Fbunny.flv&autostart=true" />