Modify your request() function as shown below, to explicitly include
the PROFILE_URL in the fetch request. By default, orkut will only
return the user's ID, NAME and THUMBNAIL_URL

function response(data) {
 output(data.get("req").getData().getDisplayName());
output(data.get("req").getData().getField(opensocial.Person.Field.PROFILE_URL));

 gadgets.window.adjustHeight();

};

function request() {
 var req = opensocial.newDataRequest();

var params = {};
params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.PROFILE_URL];
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER,
params),
"req");

 req.send(response);

};

request();

--~--~---------~--~----~------------~-------~--~----~
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