Thanks Prasad!!!!

On Jul 21, 12:14 pm, "Prasad.N" <[EMAIL PROTECTED]> wrote:
> set param's opensocial.DataRequest.PeopleRequestFields.FIRST as 20 to
> retrieve next 20 friends
> or set opensocial.DataRequest.PeopleRequestFields.MAX to 100 for
> retrieve maximum of 100 friends
>
> by
> Prasad.N
>
> On Jul 21, 11:13 am, Soumya <[EMAIL PROTECTED]> wrote:
>
> > 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