我想通过page.Is得到Facebook好友页面,可以吗?
I want to get the Facebook friends page by page.Is it possible?
推荐答案要实现分页的最佳方式: 当你得到第一个响应,检索下一个页面请求的对象形成Response对象。然后,当你想获得下一个页面的数据执行这一要求
The best way to implement pagination: when you get first response, retrieve the next page Request object form the Response object. Then execute that request when you want to get next page data
响应响应= yourFirstRequest.executeAndWait(); // getRequestForPagedResults()返回null,如果没有更多的页面,你可以用参数PagingDirection previous页面请求。preVIOUS 请求nextPageRequest = response.getRequestForPagedResults(PagingDirection.NEXT);
Response response = yourFirstRequest.executeAndWait(); //getRequestForPagedResults() returns null if there is no more paging, you can get previous page request with parameter PagingDirection.PREVIOUS Request nextPageRequest = response.getRequestForPagedResults(PagingDirection.NEXT);
//当你想下一个页面信息后,
//and after when you want next page info
nextPageRequest.executeAndWait();
更多推荐
使用Facebook的SDK 3.0.1安卓实现分页对于Facebook friendslist
发布评论