Hi Puneet,
since the new sandbox version, you have to "announce" that you want
those fields when sending the request. For example, if you want to
have the PROFILE_URL of the VIEWER, you have to write:
var params = { };
params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.PROFILE_URL];
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER,
params), 'viewer');
Otherwise, the PROFILE_URL field will be null.
Good luck!
Matthias
---
On 5 Apr., 07:27, puneet <[EMAIL PROTECTED]> wrote:
> hi,
>
> unable to fetch user details like Gender, city, state, country and age
> since the profile url changes occurred.
>
> var current_location
> =viewer.getField(opensocial.Person.Field.CURRENT_LOCATION);
> var country
> =current_location.getField(opensocial.Address.Field.COUNTRY);
> var city=current_location.getField(opensocial.Address.Field.LOCALITY);
> var
> zip=current_location.getField(opensocial.Address.Field.POSTAL_CODE);
> var state=current_location.getField(opensocial.Address.Field.REGION);
> var gender =viewer.getField(opensocial.Person.Field.GENDER).getKey();
>
> i am getting no property error. i. e. current_location has no
> properties.
>
> plz help.
>
> -puneet
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---