title: Javascript function to retrieve information for all users
body: <p>I have this function which helps me retrieve my friends ids, but i can't seem to make it work for retrieving one friend's id. I need to make a loop to get all friend ids.</p>
  
  <p>Can you help me with this code?</p>
  
  <pre><code>function(response) {
      console.log(response);
      var testdiv = document.getElementById("test");
      testdiv.innerHTML = (
          response[0].uid2
      );
  }
  </code></pre>