MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

newFetchPeopleRequest, First and Max not working...

Last post 05-28-2009 8:49 AM by rondata. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-27-2009 10:27 PM

    newFetchPeopleRequest, First and Max not working...

    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? 

  • 05-28-2009 8:49 AM In reply to

    Re: newFetchPeopleRequest, First and Max not working...

Page 1 of 1 (2 items)