Hi All!
Has anyone managed to make newFetchPeopleRequest request for specific
personId executable?
what I am trying to do is
function requestData() {
req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest("1234567890"), "friends");
req.send(responseData);
}
function responseData(data) {
var resp = data.get("friends");
if (resp.hadError()) {
document.getElementById('dev').innerHTML = "error occured";
return;
}
friends = resp.getData();
friends.each(function(person) {
....
});
}
for "1234567890" I am using valid personId and I am always getting
null instead of response, so line if (resp.hadError()) already fires
exception
Any ideas?