android - 如何在facebook android开发中使用pass bundle参数进行分页

标签 android facebook facebook-graph-api facebook-page android-facebook

实际上我正在访问我喜欢的 25 个页面的列表(在我整个 facebook 访问期间)

String graphPath = "me"
Bundle bun = new Bundle();
bun.putString("fields", "music.fields(name,videos.fields(name))");  
mAsyncRunner.request(graphPath, bun, "GET", object, null);

从我收到的数据显示在我的 listView 中,还有一个 JsonObject(分页)与以下内容相关联:

https://graph.facebook.com/100002420343415/music?fields=name,videos.fields%28name%29&access_token=CAAGjblaPDxoBAMH5FZBhdbJoJNALA0IiRGBgxLlWxlLixxTtxMUPVeo0AMkM1ZAFLZAOT7urdd1HeP1LQPJVsTSM9LDcnRUyABjSAxOHuljzRwkcbTHsPDloeA9CmZBMNPywubLPdz7PDrqaT3AC7MVxNHYLJh5tVhKI8tlAaZBoIWGGMhNKF&limit=25&offset=25&__after_id=219447808080269

收到此消息后,我想访问 limit=25&offset=25&__after_id=219447808080269 之间的那些页面,我正在使用

Bundle bun = new Bundle();
bun.putString("fields", "music.fields(name,videos.fields(name))");  
bun.putString("limit","25");
bun.putString("offset","25");
bun.putString("__after_id","219447808080269");
mAsyncRunner.request(graphPath, bun, "GET", object, null);

执行此操作后,我得到与 1st 25 Search 相同的数据,我也尝试过此操作,

Bundle bun = new Bundle();
bun.putString("fields", "music.fields(name,videos.fields(name)&limit=5000&offset=5000&__after_id=206483212727507)");    

但我找到了here我必须更改 graphPath 的路径,所以我将此 graphpath 设置为 me/music

谢谢,tushar。

最佳答案

这会有所帮助:

Bundle bun = new Bundle();

bun.putString("fields", "music.fields(name,videos.fields(name)).limit(10)." +
        "access_token("+facebook.getAccessToken()+").offset(10).__after_id(265025693519613)");

关于android - 如何在facebook android开发中使用pass bundle参数进行分页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18374232/

相关文章:

android - 策略/角色扮演游戏源代码 Android/Java

facebook - 范围无效 : user_location. 一键facebook登录时?

ios - 如何从 iOS 上的 Facebook SDK 获取用户数据

python - 无法从服务器端检索搜索结果 : Facebook Graph API using Python

javascript - 发布操作 : no more ID in error message when error. 代码等于 3501

android - 如何在访问 token 过期时自动获取刷新 token 并在 Android 中使用 HttpURLConnection 获取 401?

android - 在 android listview 中使用 onScroll

android - 如何在android imageview中显示来自数据库的图像

ios - 在 RestKit (iOS) 中使用 force_load 链接器标志

javascript - Chrome Facebook Connect 窗口调整大小