Facebook流发布对话框按钮事件在IE中不起作用


Facebook stream publish dialog buttons event not working in IE

feed的Facebook fb.ui提示很好,但当单击共享取消按钮时,该事件仅在IE中触发,在Chrome、Firefox等其他浏览器中也可以正常工作。

这是代码:

function showStreamPublish()
{
    FB.ui(
    {
    'method': 'feed',
    'name': 'xxxxxx',
    'link': 'xxxxxxxxxxxxxxx',
    'picture': 'xxxxxxxxxxxx',
    'description': 'xxxxxxxxxxxx',
    'app_id': 'xxxxxxxxxxxxxx'
    },
    function(response)
    {
        alert(response); //**** this does not work in IE
    });
}

有没有解决办法,或者这是否是facebook的bug?

根据上面的注释,您应该有一个通道文件。此外,为了兼容IE,您可能需要设置一个隐私标头(也称为p3p)。看见http://www.admon.org/how-to-implement-p3p-http-headers-for-cross-site-cookies/