Thanks Jason , that solved my problem :). Jason wrote:
> Please see the following article; it describes all request parameters > and includes sample code. > > http://code.google.com/apis/opensocial/articles/datarequests/datarequests-0.7.html#fetchPeople > > To get all of your friends in a single shot, your request will > probably look similar to: > > function request() { > var params = {}; > params[opensocial.DataRequest.PeopleRequestFields.MAX] = 1000; > > var req = opensocial.newDataRequest(); > > req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS, > params), "req"); > req.send(response); > }; > > You can also specify the FIRST parameter to implement paging since you > probably don't want to display hundreds of friends in a single list > for performance reasons. > > Cheers! > - Jason > > On May 18, 7:46 pm, rzs <[EMAIL PROTECTED]> wrote: > > Thanks for the reply ibrahim . Since im very new to orkut development > > im sorry i didnt get exactly what you mean by setting the page size or > > sending multiple requests. So,could you please show me , how to > > specify the page size or some code demonstrating how to make multiple > > requests setting the "FIRST" parameter for each request. > > > > Thanks a lot. > > > > On May 19, 7:35 am, "ibrahim okuyucu" <[EMAIL PROTECTED]> wrote: > > > > > You have to specify the page size (default 20 I guess) and if your total > > > friends are more than the page size, make multiple requests setting the > > > "FIRST" parameter for each request. > > > > > me > > > > > On Sun, May 18, 2008 at 1:59 PM, rzs <[EMAIL PROTECTED]> wrote: > > > > > > Hello, > > > > > > Im new to Orkut app development . Below is the line of code I use to > > > > enumerate my friends. > > > > > > viewerFriends.each(function(person) {html.push("<li> <img src = \" " + > > > > person.getField(opensocial.Person.Field.THUMBNAIL_URL) + " \"> </ > > > > li>");}); > > > > > > However only 20 items are returned everytime even though ive got 100's > > > > of friends in my friend list . Whats the reason behind this ? . I know > > > > that earlier we could access only the data of those friends who have > > > > been white-listed for using the sandbox . Has this got something to do > > > > with the number of results I get now ? > > > > > > Thanks. > > > > > -- > > > Ibrahim Okuyucuwww.rockyou.com > > > AIM: wer0cky0u --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

