Using the person's opensocial ID, you can get the displayname with the
following code:

function response(data) {
  if (data.hadError()) {
    output("Error: " + data.get("req").getErrorMessage());
  } else {
    output(data.get("req").getData().getDisplayName());
  }
  gadgets.window.adjustHeight();
};
function request() {
  var req = opensocial.newDataRequest();
  req.add(req.newFetchPersonRequest("<owner/viewer id>"), "req");
  req.send(response);
};
request();


You can use only the opensocial id of the owner or the viewer or you
can use the constants : opensocial.IdSpec.PersonId.VIEWER and
opensocial.IdSpec.PersonId.OWNER
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to