title: facebook javascript sdk method
body: <p>I was using facebook javascript sdk method and having a weird behaviour.</p>
  
  <p>Code snippet:</p>
  
  <pre><code>FB.api('/me/friends', function(response) {
    friendCount = response.data.length;
    for (i=0; i&lt;friendCount; i++) {
      friendId = response.data[i].id;
      FB.api('/'+friendId, function(response) {
        if (response.birthday)
          resultList.push(new Array(friendId).concat(response.birthday));
        friendCount--;
      });
    }
  });
  </code></pre>
  
  <p>I'm expecting a 2d-array of id's of friends who have birthday field defined and their birthday but I'm getting birthdays right but id's are that of last friend in my friend list.
  Any idea why this might be happening?</p>