Facebook在Chrome中连接登录窗口锁定 [英] Facebook connect login window locking in Chrome
问题描述
在过去的一周左右,我通过我的Facebook Connect功能获得了一些非常奇怪的行为。到目前为止,我只能在Chrome(版本13.0.782.112 m)中复制该问题。一切似乎都可以在Firefox和IE中运行。
In the past week or so I have been getting some very odd behavior with my Facebook Connect functionality. Thus far, I can only duplicate the issue in Chrome (version 13.0.782.112 m). Everything seems to work in Firefox and IE.
我遇到的问题可以复制(也可以轻松取消注册过程,即使Facebook Connect件因为我们之后需要唯一的用户名):
The problem I'm experiencing can be duplicated by (also, you can easily cancel the registration process even if the Facebook Connect piece works because we require a unique user name after that):
- 在Google Chrome中打开我的网站: http://www.thegameeffect.com
- 点击右下角的与Facebook连接按钮标题
- 如果您已经登录到Facebook,您可能会看到一个窗口弹出窗口。
- 此时,您将被要求允许某些访问Facebook信息(如任何其他FB Connect选项)...即使经过此步骤,您也可以取消注册。 li>
- 现在,问题出现在这里。第4步之后的窗口似乎发生了变化,但从未加载......它只是挂在那里,并且如果XD代理服务器拥有标题。
- Open my site in Google Chrome: http://www.thegameeffect.com
- Click the "Connect with Facebook" button in the bottom-right portion of the header
- You will likely see a window pop-up if you're already logged in to Facebook.
- At this point you will be asked to allow certain access to Facebook information (like any other FB Connect option)... Again, you can cancel the registration even after this step.
- Now, at this point is where the problem seems to be occurring. The window after step 4 seems to change, but never load... it simply hangs there and has a title if XD Proxy.
所以,如果关闭窗口,再次单击连接Facebook按钮,您将看到另一个空白窗口也挂起,但是,在关闭该窗口后,登录/注册似乎是成功的。我绝对不能解释它......更糟糕的是,它只发生在我做过的所有测试中的Chrome ...
So, if I close the window, click the "Connect with Facebook" button again, you will see another blank window that also hangs, however, upon closing that window, the login/registration seems to be successful. I absolutely can't explain it... And what's worse is that it only happens in Chrome in all the tests I've done...
在过去的1-2周内发生;非常令人困惑。任何帮助将得到慷慨赞赏。
AND this only started to happen within the past 1-2 weeks; very perplexing. Any help would be graciously appreciated.
只是为了快速参考,我在代码的正下方有这段代码:
Just for quick reference, I have this code directly below the tag:
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function () {
FB.init({ appId: '<myappid>', status: true, cookie: true, xfbml: true });
};
(function () {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js#xfbml=1';
document.getElementById('fb-root').appendChild(e);
} ());
</script>
这就是您点击与Facebook连接按钮时执行的代码: / p>
And this is basically the code that gets executed when you click the "Connect with Facebook" button:
function LoginWithFB(returnURL) {
FB.login(function (response) {
// things seem to hang starting here.
if (response.session) {
// the function hangs before hitting this code, so what's in here isn't terribly significant.
}
else {
// user cancelled login
$.fancybox.close();
}
}, { perms: 'email,user_about_me' });
}
推荐答案
13.0.782.220。
The problem has vanished in Chrome 13.0.782.220.
这篇关于Facebook在Chrome中连接登录窗口锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!