I'm trying to implement paging for retrieving friends. However the friends list always contains friends 1 to 20. The API does not return other pages, no matter how the values are set for PeopleRequestFields.MAX and PeopleRequestFields.FIRST. I'm using OS 0.8.
My code is as follows - I'm setting MAX to 40 and first to 41. I tried all combinations (max=20, first=3, max=20, first=61) but the result remains the same. Value for total friends returned in 117.
---------------------------
var params = {};
params[opensocial.IdSpec.Field.USER_ID] = opensocial.IdSpec.PersonId.VIEWER;
params[opensocial.IdSpec.Field.NETWORK_DISTANCE] = 1;
params[ opensocial.DataRequest.PeopleRequestFields.FIRST] = 41;
//params[ opensocial.DataRequest.PeopleRequestFields.MAX ] = 40;
// create the idspec.
var idspec = opensocial.newIdSpec(params);
req.add(req.newFetchPeopleRequest(idspec), "viewerFriends");
// ashwin code end
req.send(handleInviteFriends);
----------------------------
Is this an unfixed bug in Core API?