I can only get data from the viewer when he has the same app
installed. Is there a way to get viewer data (Name, URL) even if he or
she doesn't have the app installed? Am I doing something wrong below?

function init() {
  var req = opensocial.newDataRequest();
(...)
var opt_params = { };
  opt_params
[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [
  opensocial.Person.Field.PROFILE_URL
  ];

  req.add(req.newFetchPersonRequest
(opensocial.DataRequest.PersonId.VIEWER, opt_params), "viewer");
req.send(response);
}

function response(data) {
  viewer = data.get("viewer").getData();
  var name = viewer.getDisplayName();
  var url = viewer.getField(opensocial.Person.Field.PROFILE_URL);
 (...)
}

Thanks in advance

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

Reply via email to