I believe the maximum number of friends you can fetch is 1000. Note that this is an orkut-specific limit.
Unfortunately I'm not able to reproduce your error on my end. Try running this quick sample in the CodeRunner development application (available at the link below) and let me know if it works for you. By the way, VISITOR_FRIENDS is not a valid constant; only OWNER_FRIENDS and VIEWER_FRIENDS are available at this time. Install CodeRunner: http://opensocial-resources.googlecode.com/svn/samples/coderunner/trunk/index.html /** * CODERUNNER SAMPLE CODE */ function response(data) { if (!data.hadError()) { output(data.get('viewer').getData().getDisplayName()); data.get('friends').getData().each( function(person) { output(person.getDisplayName()); } ); gadgets.window.adjustHeight(); } else { output('Error'); } }; function request() { var params = {}; params[opensocial.DataRequest.PeopleRequestFields.MAX] = 200; var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER), "viewer"); req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS, params), "friends"); req.send(response); }; request(); /* END CODERUNNER SAMPLE CODE */ Cheers! - Jason On Mar 24, 10:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Surprising !!! > > It is working now.. But it still fails if i give max as 100. Is there > any limit on the max number ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

