title: FB.api is not a function
body: <p>I'm trying to pull all of the posts on a users wall. I got an example running that connects to FB okay, but when I try to use FB.api to get the username (I am definitely successfully connected), I get <code>FB.api is not a function</code>. Some searching found <a href="http://forum.developers.facebook.net/viewtopic.php?id=64956" rel="nofollow">this</a> which suggests that I'm using the wrong API link, but when I try the <a href="http://developers.facebook.com/docs/reference/javascript/" rel="nofollow">new one</a> (which seems to connect using the same method) everything firebug NET panel says it loads successfully, there are no errors. . . nothing happens at all.</p>
  
  <p>Here is the code (replace the <a href="http://connect.facebook.net/en_US/all.js" rel="nofollow">http://connect.facebook.net/en_US/all.js</a> link with <a href="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" rel="nofollow">http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php</a> for the code to work up until the error I mentioned):</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
  &lt;head&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function grab(){
  FB.api('/me', function(response) {
    alert(response.name);
    });
  }
  function update_user_box() {
  var user_box = document.getElementById("user");
  user_box.innerHTML =
  "&lt;div&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;"
  + "&lt;/div&gt;"
  + "&lt;a href=\"javascript:grab()\"&gt;try me&lt;/a&gt;";
  FB.XFBML.Host.parseDomTree();
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  
  &lt;div id='user'&gt;&lt;fb:login-button onlogin="update_user_box();"&gt;&lt;/fb:login-button&gt;&lt;/div&gt;
  &lt;br&gt;&lt;br&gt;
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  FB.init("b07e858317c9069d450023b7500b4511", "xd_receiver.htm", {"ifUserConnected": update_user_box});
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>thanks for any and all help!</p>