【发布时间】:2012-05-30 05:30:53
【问题描述】:
我无法将可播放的 swf 发布到新闻源(例如“Feed Gaming”)。 my_og.php 中的打开图形对象(下面的代码)在 facebook 调试器中看起来很好,并识别出它是一个视频嵌入。但是当我使用 javascript api 和 feed 对话框(下面的代码)发布到 feed 时,它无法识别它应该能够被点击并加载 swf 来播放并且只显示静态图像。
js api调用:
var obj = {method: 'feed', link: 'http://example.com/my_og.php'};
FB.ui(obj, function(response) {});
my_og.php:
<html lang="en" xmlns:fb="https://www.facebook.com/2008/fbml">
<head prefix="og: http://ogp.me/ns fb: http://ogp.me/ns/fb">
<meta property="fb:app_id" content="xxxxxxxxxxxx" />
<meta property="og:type" content="game" />
<meta property="og:url" content="http://example.com/my_og.php" />
<meta property="og:title" content="title" />
<meta property="og:description" content="desc" />
<meta property="og:image" content="http://example.com/test.png" />
<meta property="og:video" content="http://example.com/test.swf" />
<meta property="og:video:width" content="200" />
<meta property="og:video:height" content="200" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
</head>
</html>
【问题讨论】:
标签: facebook facebook-graph-api facebook-opengraph feed