how to get the user id from this array and print that
<p>i have code to get the my friend list from facebook </p>

<p>the code is................</p>

<pre><code>function getFriends() {
    //if the person has not pressed login button
    if(!loggedIn) {
        loginFacebook();
    }

    document.getElementById("status").innerHTML = "Now loading your friends' id...";

    //if the person is loggedIn
    if(loggedIn) {
        document.getElementById("friendBtn").disabled = "disabled";
        FB.api("/me/friends",function(response){
                friends = response["data"];
                totalToBeLoaded = friends.length;
            //  addNewRow("Name","id");
                loadid(friends.length);

        });
    }
}
</code></pre>

<p>the response["data"] function returns the data in the form of array as </p>

<pre><code>{
 "data": [
  {
     "name": "name 1",
     "id": "123456781"
  },
  {
     "name": "name 2",
     "id": "123456782"
  },
  {
     "name": "name 3",
     "id": "123456783"
  },
  {
     "name": "name 4",
     "id": "123456784"
  },
  {
     "name": "name 5",
     "id": "123456785"
  },
  {
     "name": "name 6",
     "id": "123456786"
  }
  ]
}
</code></pre>

<p>now i need to get that name and id of the user from that response["data"] and print that .. how to do that?</p>
