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.
Can you help me with this code?
function(response) {
console.log(response);
var testdiv = document.getElementById("test");
testdiv.innerHTML = (
response[0].uid2
);
}
Just iterate over
response:Docs for
forhereAnd to demonstrate how you would use it