title: IE8 Win7 Facebook Connect Problem
body: <p>Update 4/8/09 - I'm into a new week with no progress and no answers from the Facebook forums.  Not one response over there, which is pretty disappointing.  I also cannot figure out how to put a bounty on this question, but I would really, really love to get this issue solved.</p>
  
  <hr>
  
  <p>I have looked at many posts to see if this was posted before, and it was not.  Here's the short version:</p>
  
  <p>I am going through the sample FB Connect tutorial (v1) and cannot make it work in IE8 on Win7.  It works as expected on FF3 on Win7.</p>
  
  <p>Long Version:</p>
  
  <p>I was suprised that things weren't working since I had pretty much copy and pasted over the content.  I skipped over the bit with the alert() javascript call, so I put that in to see if the parser was even getting to that.  I put the following code in:</p>
  
  <pre><code>[my raw html]
  Or use, &lt;fb:login-button length="long" onlogin="alert('yo!!!');"&gt;&lt;/fb:login-button&gt;
  [/my raw html]
  </code></pre>
  
  <p>The Alert is not popping on IE8.  It works on FF.</p>
  
  <p>When I change back to calling the update_user_box(), my HTML looks like:</p>
  
  <pre><code>Or use, &lt;fb:login-button length="long" onlogin="update_user_box();"&gt;&lt;/fb:login-button&gt;
  
  &lt;script type="text/javascript"&gt;
      function update_user_box() {
          var user_box = document.getElementById("user");
          user_box.innerHTML =
              "&lt;span&gt;"
              + "&lt;fb:profile-pic uid='loggedinuser' facebook-logo='true'&gt;&lt;/fb:profile_pic&gt;"
              + "Welcome, &lt;fb:name uid='loggedinuser' useyou='false'&gt;&lt;/fb:name&gt;."
              + "You are signed in."
              + "&lt;/span&gt;"
  
          FB.XFBML.Host.parseDomTree();
      }
  
      FB.init("23e24c73feed7ca0f6afd876575842de", "../../Connect/xd_receiver.htm", { "ifUserConnected": update_user_box });
  &lt;/script&gt;
  </code></pre>
  
  <p>Again, this works in FF3 just fine.  My picture shows up and everything.  It actually makes me more upset that it worked in FF3 than a complete no work situation.</p>
  
  <p>Here is the witnessed behavior in IE8:</p>
  
  <ol>
  <li><p>When I click on the FBConnect button. the javascript window pops up and loads the right logon page</p></li>
  <li><p>Focus changes back to the main window (the one with my app)</p></li>
  <li><p>The main IE8 window (the one where I clicked the connect button) now shows a facebook logon page.</p></li>
  <li><p>When I input my credentials into the FB javascript window, the page loads a blank doc
   URL of that page: <a href="http://localhost:55994/Connect/xd_receiver.htm?fb_login&amp;fname=_opener&amp;session=%7B%22session_key%22%3A%223.A4DpHk4nrKHooB7K_Q6EiA__.86400.1238796000-623225%22%2C%22uid%22%3A%22623225%22%2C%22expires%22%3A1238796000%2C%22secret%22%3A%22HtjtJS_xg8dX7TR7lLggew__%22%2C%22sig%22%3A%22ae12c0f98d4567612b70861314d42fbb%22%7D" rel="nofollow noreferrer">http://localhost:55994/Connect/xd_receiver.htm?fb_login&amp;fname=_opener&amp;session=%7B%22session_key%22%3A%223.A4DpHk4nrKHooB7K_Q6EiA__.86400.1238796000-623225%22%2C%22uid%22%3A%22623225%22%2C%22expires%22%3A1238796000%2C%22secret%22%3A%22HtjtJS_xg8dX7TR7lLggew__%22%2C%22sig%22%3A%22ae12c0f98d4567612b70861314d42fbb%22%7D</a></p></li>
  </ol>
  
  <p>View Source of that page:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;body&gt;
      &lt;script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>5, If I close that window and type my credentials into the app window, the page reloads with the FBConnect button.</p>
  
  <p>As I said, I am getting the expected behavior in FF3, but not IE8.  I even tried IE8's compatability mode, but that didn't work either.  Anyone have any clues as to what is happening?</p>
  
  <p>My HTML tag looks like:</p>
  
  <p></p>
  
  <p>So I know that's not the issue.</p>