其实我正在访问我喜欢的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
答案 0 :(得分:1)
这件事会有所帮助:
Bundle bun = new Bundle();
bun.putString("fields", "music.fields(name,videos.fields(name)).limit(10)." +
"access_token("+facebook.getAccessToken()+").offset(10).__after_id(265025693519613)");
答案 1 :(得分:0)
我不太确定,但我正在尝试类似的查询
me/music?__after_id=108196079208151
图浏览器中的并且它无法正常工作但是如果我执行此
me/music?offset=1
然后它完美地运作。我认为offset和__after_id在某种程度上存在冲突。
作为提示首先检查graph api explore上的结果。