simple fbml fb:login-button is not rendering in ie6

The following codes works in FF and Chrome, but IE6 does not render the connect button.

What am I missing here?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0     Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title></title>
</head>
<body>
<fb:login-button>Login button</fb:login-button>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">  
FB_RequireFeatures(["XFBML"], function(){ 
    FB.Facebook.init("API_KEY", "/xd_receiver.htm"); 
}); 
</script> 
</body>
</html>

Answers


Seems the problem is with the Maxthon browser and not the straight forward IE6.


Replace the javascript to this one:

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=261463080590982";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Need Your Help

Python script is behaving differently when run through batch file and cmd line

python windows batch-file cmd

I have a Python script which needs to be run with a batch file, but I've been using cmd to test it. When run through cmd, it works fine. However, the script seems to behave differently when run th...

How can I extract the distance from Google Directions API via Excel web query?

excel api vba distance

I have a long list of origins and destinations in Excel, using webquery I can fill in the cities and postal code to give a webquery like: