0

我正在尝试使用基于以下文档的嵌入式 Flash 对象做一个基本的 facebook 墙贴:

https://developers.facebook.com/docs/reference/dialogs/feed/

我想只使用直接 URL 来执行此操作,例如(注意参数被编码):

https://www.facebook.com/dialog/feed?
app_id=SOME_APP_ID&
link=http://www.myregisteredfbdomain.com/someurl&
picture=http://www.myregisteredfbdomain.com/cfg/media/imagelink.png&
name=Flash%20Test&
caption=Just%20a%20test&
description=A%20Description&
redirect_uri=http://www.myregisteredfbdomain.com/someurl&
source=http://www.myregisteredfbdomain.com/facebook/aflashfile.swf

虽然我也尝试过使用 javascript,但结果相同:

<script> 
  FB.init({appId: SOME_APP_ID, status: true, cookie: true});

  function postToFeed() {
     var obj = {
       method: 'feed',
       redirect_uri: 'http://www.myregisteredfbdomain.com/someurl',
       link: 'http://www.myregisteredfbdomain.com/someurl',
       picture: 'http://www.myregisteredfbdomain.com/cfg/media/imagelink.png',
       name: 'Flash Test',
       description: 'A Description',
       source: 'http://www.myregisteredfbdomain.com/facebook/aflashfile.swf'
     };

     function callback(response) {
       document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
     }
  FB.ui(obj, callback);
  }
</script>

当我在我的开发 fb 帐户下发帖时,帖子显示正常,我可以单击正确显示 flash 的图标。

但是,当我在自己的个人 fb 帐户下发帖时,该帖子仅显示图像,但当我单击它时没有 Flash 激活 - 它只是转到我定义的链接/重定向链接。

谁能给我任何关于为什么会这样的指示?

4

1 回答 1

0

Found out why - It's because I'm accessing the post to my personal account through a https connection, which doesn't show the flash - it's linked via a http connection.

于 2012-12-21T21:00:38.367 回答