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

发布于 2024-12-24 20:35:05 字数 558 浏览 4 评论 0原文

Facebook fb.ui for feed 提示正常,但是当单击分享取消按钮时,该事件不发生仅在 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 错误?

Facebook fb.ui for feed prompts fine, however when clicked on Share or Cancel button, the event is not triggered in IE only, works fine in other browsers such as Chrome, Firefox, etc.

Here is the code:

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
    });
}

Any workaround this or whether this is facebook bug ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枫以 2024-12-31 20:35:05

根据上面的评论,您应该有一个频道文件。此外,为了兼容 IE,您可能需要设置隐私标头(又名 p3p)。请参阅 http://www.admon .org/how-to-implement-p3p-http-headers-for-cross-site-cookies/

From the comments above you should have a channel file. Also, for IE compatibility, you may need to set a privacy header (aka p3p). See http://www.admon.org/how-to-implement-p3p-http-headers-for-cross-site-cookies/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文