I've just tried pasting the following code into the OpenSocial
Developer App
on http://www.orkut.com.br and got back the right profile url:


function getData() {
        var req = opensocial.newDataRequest();
        var owner_params = {};
        owner_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [
                opensocial.Person.Field.ID,
                opensocial.Person.Field.THUMBNAIL_URL,
                opensocial.Person.Field.PROFILE_URL
        ];
        req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER,
owner_params), "owner");
        req.send(response);

}

function response(dataResponse){
     var owner = dataResponse.get('owner');
     if(!owner.hadError()){
        var owner_data = owner.getData();
        var url_perfil = owner_data.getField
(opensocial.Person.Field.PROFILE_URL);
       output(url_perfil);
      }

}

getData();



Can you please try it? If you do not have the OSDA installed, you can
install it from:
http://osda.appspot.com/
--~--~---------~--~----~------------~-------~--~----~
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