Hi Jarebb, Your code looks good, so it looks like Friendster might be having a problem. You should submit a bug report to them indicating what you're seeing.
Here's some code that shows how to get the total number of the owner's friends. It should display two alerts: the first should display 5 (the number of friends contained in the response) and the second should display the number of total friends you have available. function response(data) { var friends = data.get("friends").getData(); alert(friends.size()); alert(friends.getTotalSize()); }; var params = {}; params[opensocial.DataRequest.PeopleRequestFields.MAX] = 5; params[opensocial.DataRequest.PeopleRequestFields.FIRST] = 10; var req = opensocial.newDataRequest(); req.add(req.newFetchPeopleRequest( opensocial.DataRequest.Group.OWNER_FRIENDS, params), "friends"); req.send(response); Hope this helps! ~Arne On Sep 10, 11:52 pm, Jarebb <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm working on a friendster application and encounter a problem with > the following friend paging code. I have already set the MAX = 5, but > the following code will return a total of 15 Friends. > > var params = {}; > params[opensocial.DataRequest.PeopleRequestFields.MAX] = 5; > params[opensocial.DataRequest.PeopleRequestFields.FIRST] = 10; > > req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS, > params), "viewerFriends"); > > Is there something wrong with my code? > > And also, is there anyway to get the total number of owner friends > without the above code to retireve all details of the owner friends. > > Thanks fr your help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@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-api?hl=en -~----------~----~----~----~------~----~------~--~---