Hi,
I wanted to know what is a user's nickname and how/if I can edit it.
Is the nickname being set directly from the user's First and Last name
or its a separate property that each user can set to himself ?
In addition, I am trying to realize how to get the viewer nickname. In
the function that set the Data request I have this code:
var p = {};
p[opensocial.IdSpec.Field.USER_ID] = "OWNER";
var OwnerIdSpec = opensocial.newIdSpec(p);
var params = {};
params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]
=
[opensocial.Person.Field.PROFILE_URL,opensocial.Person.Field.NICKNAME];
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.VIEWER, params), "viewer");
req.add(req.newFetchPersonRequest
(opensocial.IdSpec.PersonId.OWNER), "owner");
req.send(handleRequestMyData);
Then in the function that gets the data I try this:
viewer = data.get('viewer').getData();
var viewerURL = viewer.getField(opensocial.Person.Field.PROFILE_URL);
var viewerNickName = viewer.getField
(opensocial.Person.Field.NICKNAME);
I get the URL just fine but the nickname is undefined.
Can you please help and let me know what I am doing wrong here?
Thanks,
Hilly
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---