Hi All,

I am new to open social development.

How can I get all fields values of viewer. Currently i am able to get
THUMBNAIL_URL.
When I am requesting for other fields eg: PROFILE_URL, getting only
null value.

my code is below:

function loadFriends() {
    var req=opensocial.newDataRequest();
    req.add(req.newFetchPersonRequest("VIEWER"), "viewer");
    req.send(onLoadFriends);
  };


function onLoadFriends(data){
        var viewer = data.get('viewer').getData();

        viewerDisplayName=viewer.getDisplayName()
        
viewerPhotoURL=viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);

        var profile_url =
viewer.getField(opensocial.Person.Field.PROFILE_URL);
       alert(profile_url )
}

How can I solve this. expecting some help.

Thanks
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to