【发布时间】:2023-03-13 11:58:02
【问题描述】:
我想在 Facebook 墙贴上嵌入我自己的 HTML5(带有 Flash 备份)播放器。 我正在使用 rails 和 ruby Koala。 我已经看到了这个:https://developers.facebook.com/docs/share/ 可以添加元标记,但它可以用于链接到我的网页或要加载的视频文件。
如果有人可以帮助我,不胜感激:)
【问题讨论】:
我想在 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" />
【讨论】: