Yes, I just tried the code above in OSDA and I also got back the right profile url.
I don't know why getField(opensocial.Person.Field.PROFILE_URL) works fine in OSDA, but it doesn't in my app. The only thing I can think of is that my app is using OpenSocial v 0.7 and maybe OSDA is using v 0.8? Is OpenSocial v 0.7 still supported? 2009/3/2, Vijaya <api.vij...@google.com>: > > 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 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 -~----------~----~----~----~------~----~------~--~---