Hi,

First send an newFetchPeopleRequest:

var req = opensocial.newDataRequest();
  req.add(req.newFetchPeopleRequest("VIEWER_FRIENDS"), "viewer_friends");
  req.send(response);

then in the callback function "response" access the respected profile fields
and put them in html:

var viewer_friends = data.get("viewer_friends").getData();
  viewer_friends.each(function(person) {
      var thumb = person.getField(opensocial.Person.Field.THUMBNAIL_URL);
      var profile = person.getField(opensocial.Person.Field.PROFILE_URL);
      var name = person.getField(opensocial.Person.Field.NAME);
      profile = 'http://sandbox.orkut.com' + profile;
      html += '<a href="' + profile + '" target="_top">';
      html += '<img src="' + thumb + '"/>&nbsp<b>' + name + '</b>';
      html += '</a>';
      html += '<hr>'
  document.getElementById("content").innerHTML = html;
  });}


marc.


2008/1/28, Tezpur4u <[EMAIL PROTECTED]>:
>
>
> please tell me brifly
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Discussion" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
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