viewerFriends.getField(opensocial.Person.Field.THUMBNAIL_URL);
this will fetch the pic url...
here is a sample code.....

function loadFriends() {
  var req = opensocial.newDataRequest();
  var params = {};
  params[opensocial.DataRequest.PeopleRequestFields.MAX] = 9999;
  req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');



  params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[
    opensocial.Person.Field.PROFILE_URL
  ];



req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS,
params), 'viewerFriends');



  req.send(onLoadFriends);
                           };

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



  html = new Array();
  html.push('<ul>');

var thumb;
  viewerFriends.each(function(person) {

thumb= viewerFriends.getField(opensocial.Person.Field.THUMBNAIL_URL);

html.push('<li>' + person.getDisplayName() +'  :: <img src="'+thumb
+'"></li>');

});
  html.push('</ul>');
  document.getElementById('friends').innerHTML = html.join('');



 };









On Jun 25, 2:53 pm, aparna <[EMAIL PROTECTED]> wrote:
> Hi.. I am trying my hand on orkut apps. I am trying to display the
> profile picture of all my listed friends list. Can you please let me
> know how to do it as I have gone through your documentation but am not
> able to find out.
>
> Thanks!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to