I am using FB.getLoginStatus
for an application in Facebook. This works fine in all the browsers, including IE8. But it doesn\'t work for IE7. My code is:
According to the documentation at http://developers.facebook.com/docs/reference/javascript/fb.init/, the proper solution is to create a file on your web server (for instance channel.html
) containing just:
And then specifying the absolute URL to your channel.html in your init options:
For convenience in deployment, I use the following to calculate my channelUrl.
var curLoc = window.location;
curLoc.protocol + "//" + curLoc.hostname + ":" + curLoc.port + "/channel.html"