我在發佈新聞源時發佈了一個可播放的swf問題,「Feed Gaming」。在facebook調試器中my_og.php(下面的代碼)中的開放圖形對象看起來很好,並且認識到它是一個視頻嵌入。但是當我使用javascript api和feed對話框(下面的代碼)發佈到feed時,它不能識別它應該能夠被點擊並加載swf來播放並且只顯示靜態圖像。發佈swf到新聞源(「Feed Gaming」)
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>