FB.login回调在Opera Mobile浏览器上不工作 [英] FB.login callback not working on Opera Mobile browser

查看:237
本文介绍了FB.login回调在Opera Mobile浏览器上不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在OPera Mobile上测试我们的网络应用程序。我们有一个signIn通过Facebook链接。它需要我到登录页面,但在我输入我的ID和密码后什么也没有发生。如果我点击登录按钮多次,它给我太多失败的尝试错误。但此后我的Facebook帐户似乎已经登录。

I am testing our web application on OPera Mobile. We have a signIn through facebook link. It takes me to the login page, but after I enter my ID and password nothing happens. If I click on the login button mutliple times, it gives me too many failed attempts error. But after this my facebook account seems to be logged in.

如果我登录Facebook,回到我们的应用程序,并点击登录,没有任何反应,我看到一个空白页。在我做Javascript调试后,我可以看到FB.login()回调没有运行。

If I login to facebook and come back to our application and click on login, nothing happens, I see a blank page. After I did Javascript debug, I could see that the FB.login() callback is not running at all.

有谁可以告诉我可能是什么原因?

Can any of you tell me what could be the reason?

谢谢,
Yamini

Thanks, Yamini

推荐答案

Facebook Connect包含一些浏览器嗅探(或伪浏览器嗅探,检测一些功能,使用和其他功能可用)。它们具有使用HTML5的 window.postMessage()的功能,它应该在最新的Opera在桌面和移动上正常工作,但由于不幸的嗅探方法,他们发送Opera下来另一个分支在他们的脚本。公平地说,这是由于历史原因,postMessage()支持已经一段时间,而HTML5正在形成和所有细节达成一致,所以可能还有一些实现(早期的Opera和IE版本?)仍然在使用,并不能与Facebook Connect的JS。

Facebook Connect contains some browser sniffing (or "pseudo-browser-sniffing", detecting some features and making assumptions about what browser is used and what other features are available). They have functionality that uses HTML5's window.postMessage() which ought to work just fine in latest Opera on both desktop and mobile, but due to the unfortunate sniffing approach they send Opera down another branch in their script. To be fair, this is for historical reasons, the postMessage() support was in flux for a while while HTML5 was shaping up and getting agreement on all details, so there are probably still some implementations (earlier Opera and IE versions?) that are still in use and would not work with Facebook Connect's JS.

理想情况下,Facebook会解决这个问题。我将跟进Opera(仔细检查我建议Facebook应该如何在Opera Mobile上工作)和Facebook(尝试调整其浏览器检测)。

Ideally, Facebook would fix this. I will follow up with Opera (to double-check that what I recommend Facebook should do will work on Opera Mobile) and Facebook (to try to get their browser detection adjusted).

这篇关于FB.login回调在Opera Mobile浏览器上不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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