The role name used in orkut is 'VIEWER' and you can use the following code snippet to get the basic information (id, displayname, thumbnail url) of the VIEWER:
function response(data) { if (data.hadError()) { alert("Error: " + data.get("req").getErrorMessage()); } else { alert(data.get("req").getData().getDisplayName()); } gadgets.window.adjustHeight(); }; function request() { var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest (opensocial.DataRequest.PersonId.VIEWER), "req"); req.send(response); }; request(); To retrieve more user fields, you need to explicitly specify them in the request parameters as follows: var opt_params = {}; opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.HAS_APP, opensocial.Person.Field.GENDER]; req.add(req.newFetchPersonRequest (opensocial.DataRequest.PersonId.VIEWER, opt_params), "req"); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---