Hi Peter,
Please refer to
http://code.google.com/p/opensocial-resources/wiki/RequestingDetailedProfileInformation
for information regarding the same.
HTH,
Prafulla
On Jun 23, 6:31 pm, Peter <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---