IE FB.login回调未运行且XD代理窗口保持打开状态 [英] IE FB.login callback not running and XD proxy window left open

查看:82
本文介绍了IE FB.login回调未运行且XD代理窗口保持打开状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让Facebook登录在IE中正常工作。问题是间歇性的。通常,当它调用FB.login时,弹出窗口会显示但仍保留在空白页,XD代理上,并且永远不会运行回调。有时,回调会运行,但窗口不会关闭 - 我想这可能是我第一次在重启机器后尝试它(关闭并打开浏览器没有相同的效果)。

I am having problems getting Facebook login to work correctly in IE. The problem is intermittent. Usually, when it makes the call to FB.login, the popup appears but stays on an empty white page, XD proxy, and never runs the callback. Occasionally, the callback will run, but the window will not close - I think this may be the first time I try it after rebooting my machine (closing and opening the browser does not have the same effect).

您可以在 www.runescape.com/ 上看到此问题,但是在 www.waroflegends.com/ 上使用相同的代码,登录似乎正常。

You can see this problem on www.runescape.com/, yet with the same code on www.waroflegends.com/, the login seems to work correctly.

我搜索过并发现了很多关于XD代理主题的讨论,但没有一个解决方案对我有用。我已经尝试添加自定义频道网址并确保fb div是正文的第一个子节点无效。

I have searched and found a lot of talk on the XD Proxy topic, but none of the solutions seem to work for me. I have tried adding a custom channel url and making sure the fb div is the first child of the body to no effect.

推荐答案

在FB.init之后立即尝试:

Try this right after FB.init:

if($.browser.msie || $.browser.opera) { // yes, this is jQuery :)
  FB.XD._transport = 'fragment';
  FB.XD.Fragment._channelUrl = yourChannelUrl;
}

这篇关于IE FB.login回调未运行且XD代理窗口保持打开状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆