Hai sir,

 how to Retrive the gender and address of the orkut information. i
always get that  values as null i have written the code as follows and
run in coderunner but it always shows null vlaues.

/**
 * DEFAULT CODERUNNER SAMPLE CODE
 */
function loadUsers() {
          var req = opensocial.newDataRequest();
          req.add(req.newFetchPersonRequest('OWNER'), 'owner');
          req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
          req.send(onLoadUsers);
        }

function onLoadUsers(dataResponse)
{
          var owner = dataResponse.get('owner').getData();
          var viewer = dataResponse.get('viewer').getData();
          var ownerId = owner.getField(opensocial.Person.Field.ID);
           var profileurl =
owner.getField(opensocial.Person.Field.PROFILE_URL);
output("The profile url was" + profileurl);
output("The owner name is "+owner.getDisplayName());
output(ownerId);
output("Country was"
+owner.getField(opensocial.Person.Field.CURRENT_LOCATION).Country);
output("Gender was"+
owner.getField(opensocial.Person.Field.GENDER));
  output("The age was"
+owner.getField(opensocial.Person.Field.AGE));
}

i got age and gender and country information is null pls give me the
reply as early as possible. pls do need help for this

Thanks&Regards
Anitha.A
loadUsers();

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