Hi, I'm trying to get the email addresses of a viewer's friends in
Orkut. Nothing seems to work.
var viewer_friends = data.get("viewer_friends").getData();
viewer_friends.each(function(person) {
var name = person.getDisplayName(); // displays right!
var thumb =
person.getField(opensocial.Person.Field.THUMBNAIL_URL); // displays
right!
var email = person.getField('email'); // always null
var email2 = person.getField(opensocial.Person.Field.EMAIL); //
null
var email3 =
person.getField(opensocial.Person.Field.EMAIL_ADDRESS); // null
}
Why no worky? Where can I get a list of the available fields? I can't
find it anywhere.
Thanks,
Rich
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial API Definition" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---