IE 和 facebook 誓言问题

发布于 2024-11-06 20:33:58 字数 374 浏览 1 评论 0原文

我正在使用 facebook javascript SDK 进行 facebook 登录。它适用于除 IE 之外的所有浏览器。当 Facebook 弹出窗口打开要求接受权限时,一旦您单击“接受”,它就会在该弹出窗口中重新加载该网站,并且不会采取任何操作。我不认为 FB 事件有效:

 FB.Event.subscribe('auth.login', function (response) {
    login();
});

我尝试添加 facebook 页面中记录的频道 html,但这也不起作用...我也尝试仅请求 1 个权限,但它仍然重新加载该页面..所以出了什么问题与 IE 以及如何使其工作?同样,所有其他浏览器都没有问题。所有 IE 版本都出现此问题。

I am using facebook javascript SDK for facebook login. It works for all browsers but IE. When a facebook popup opens asking to accept permissions, once you click Accept, it reloads that website in that popup window and no action is taken. I dont think FB events work:

 FB.Event.subscribe('auth.login', function (response) {
    login();
});

I tried to add channel html as documented in facebook page, but that didn't work neither... I also tried to ask just for 1 permission, but it still reloads that page.. So whats wrong with IE and how to make it work? again, all other browsers have no issues. This is broken for all IE versions..

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

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

发布评论

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

评论(1

盛装女皇 2024-11-13 20:33:58

我也有同样的问题。所有其他浏览器都会正确重定向到 facebook 以完成身份验证,但 IE 只是一遍又一遍地询问原始服务器,直到服务器挂起。

我已经使用 tcpdump 捕获了整个过程,这是一个示例:

GET /fork HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
Accept-Encoding: gzip, deflate
Host: fbar.toolsteam.com
Connection: Keep-Alive
Cookie: PHPSESSID=7f32d7e4acd63696bd8d0998913f608c; PHPSESSID=3260d25a1730179c9c09914e22e330d7

HTTP/1.0 302 Moved Temporarily
Date: Mon, 07 May 2012 07:02:41 GMT
Server: Apache
X-Powered-By: PHP/5.3.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=334f8739ecfdc934ce36186b9dea4b11; expires=Tue, 07-May-2013 07:02:41 GMT; path=/
Location: https://www.facebook.com/dialog/oauth?client_id=336243633108439&redirect_uri=http%3A%2F%2Ffbar.toolsteam.com%2Ffork&state=3adc47d3453b34b4d50ad2d2651d9bd1&scope=publish_stream%2Coffline_access%2Cemail%2Cuser_groups%2Cpublish_actions
Content-Length: 0
Content-Type: text/html
Connection: keep-alive

它只是执行这个确切的请求并重定向,直到浏览器放弃。

我当然想找到解决方案。

I'm having the same problem. All other browsers redirect correctly to facebook to complete the auth, but IE just keeps asking the orginal server over and over until the server hangs up.

I've captured the entire thing using tcpdump, here's a sample:

GET /fork HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
Accept-Encoding: gzip, deflate
Host: fbar.toolsteam.com
Connection: Keep-Alive
Cookie: PHPSESSID=7f32d7e4acd63696bd8d0998913f608c; PHPSESSID=3260d25a1730179c9c09914e22e330d7

HTTP/1.0 302 Moved Temporarily
Date: Mon, 07 May 2012 07:02:41 GMT
Server: Apache
X-Powered-By: PHP/5.3.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=334f8739ecfdc934ce36186b9dea4b11; expires=Tue, 07-May-2013 07:02:41 GMT; path=/
Location: https://www.facebook.com/dialog/oauth?client_id=336243633108439&redirect_uri=http%3A%2F%2Ffbar.toolsteam.com%2Ffork&state=3adc47d3453b34b4d50ad2d2651d9bd1&scope=publish_stream%2Coffline_access%2Cemail%2Cuser_groups%2Cpublish_actions
Content-Length: 0
Content-Type: text/html
Connection: keep-alive

It just goes through this exact request and redirect until the browser gives up.

I'd sure like to find the solution.

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