Facebook connect showing blank popup on login in I

2020-02-10 04:59发布

I am integrating facebook login to my application and it is working fine in browsers except IE. It opens the login window, after login redirecting to http://static.ak.fbcdn.net/connect/xd_proxy.php, and got stuck there displaying a blank page in the popup. In other browsers it will close the popup and redirect to my site. My application url is like http://dev.mysite.com/app/. so I have given the domain name dev.mysite.com in facebook application settings. I am using facebook javascript sdk and my site is in PHP. Some one please help me to figure out the actual problem.

Thanks in advance

7条回答
劳资没心,怎么记你
2楼-- · 2020-02-10 05:35

If someone is still having problem with this, the easiest fix is to use the latest API from http://code.google.com/p/facebook-actionscript-api/ and publish the .swf for Flash Player 10 (this is the most important part).

查看更多
倾城 Initia
3楼-- · 2020-02-10 05:37

I have solved the issue by giving channelUrl parameter in FB.init . Now its working fine. Given absolute url to channel receiver. Content of that file will be a single line <script src="http://connect.facebook.net/en_US/all.js"></script> . Thanks to all :) `

查看更多
家丑人穷心不美
4楼-- · 2020-02-10 05:38

See this bug report : IE8, getLoginStatus never completes when flash XD is used - it sounds like it might be what you are experiencing.

In that case, make sure that your fb-root div is not being set to visibility:hidden or display:none as this will cause the XD Flash not to render.

查看更多
祖国的老花朵
5楼-- · 2020-02-10 05:51

If you use an AdBlocker such as Privacy Badger (which I use and love), it may by default block some external urls like Facebook when opened in a popup window, resulting in a blank screen.

Simply disable Privacy Badger (or other extension) for that page, or go into the settings and make sure not to block the following urls:

  • www.facebook.com
  • staticxx.facebook.com
  • graph.facebook.com
  • s-static.ak.facebook.com

That should do it (hopefully)!


Extra tip but beside the point; I found that it's generally ok to not allow cookies from those URLs, so long as your not blocking the request then the Facebook popup should still work. It's probably good to try out your app using different setups.

查看更多
萌系小妹纸
6楼-- · 2020-02-10 05:52

Sometimes this happens because of cookies , try to clear cookies.And its not just the problem in IE , its also problem in other browsers.If you test your app again you'll face it. The best option for it is to use php api , it will take you to the facebook page user will enter credentials and it will send back you to your site again , with string embedded in your url.This is best way without any harm.And easy to implement.

查看更多
ら.Afraid
7楼-- · 2020-02-10 05:53

If someone is still having problems, there are two things that usually cause fb login problems (it stays open, blank, no response..) in IE:

  1. Missing channelUrl parameter in FB.init.
  2. Protected mode: IE -> Internet Options -> Security tab -> Local intranet -> (check) Enable protected mode
查看更多
登录 后发表回答