I am using this function to get a persons info from his opensocial ID
newFetchPersonRequest(id, opt_params)
i am using it like this---
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest("17361100101336358962","person");
req.send(fc);
function fc(data){
var error = data.get("person").hadError();
if (error) {alert("err");}
var person = data.get("person").getData();
var nm=person.getDisplayImage();
var img=person.getField(opensocial.Person.Field.THUMBNAIL_URL);
alert(nm);
alert(img);
}
however i am getting a JS error that person has no properties, what am
i missing?
Also i am not able understand how to make secure content fetching
using the new
makeRequest(url, callback, opt_params)
Thanks