Hi All,

I am trying to built an application in Orkut. For this I am trying to
get all me friends' orkut ids as well as their names.

//
#########################################################################################

function getData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS'), 'viewerFriends');
req.send(onLoad);
};
function onLoad(dataResponse) {
var viewer= dataResponse.get('viewer').getData();
var viewerFriends = dataResponse.get('viewerFriends').getData();
var html = '';
viewerFriends.each(function(person) {
      html += person.getId()+"###"+ person.getDisplayName()+ ",";
});
var strLen = html.length;
html = html.slice(0,strLen-1);
document.getElementById("showcontent").innerHTML = html;
};
 getData();

//
##########################################################################################

But, here I am getting details of only 20 friends although I am having
82 friends. Please hep me to resolve this issue.

Thanks in advance.....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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