使用Facebook的SDK 3.0.1安卓实现分页对于Facebook friendslist

编程入门 行业动态 更新时间:2024-10-11 11:14:07
本文介绍了使用Facebook的SDK 3.0.1安卓实现分页对于Facebook friendslist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想通过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

本文发布于:2023-11-28 14:22:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642770.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:分页   SDK   Facebook   friendslist

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!