我試圖讓所有的用戶圖像,但我讀了Facebook沒有返回所有結果dua到性能的原因。Facebook圖形API不會返回下一個和以前的分頁鏈接
所以我讀了關於分頁的文檔。
但我得到的迴應是沒有previous
和next
領域
我對API調用:
FB.api(
"/me/photos",
function (response) {
if (response && !response.error) {
console.log(response);
}
}
);
和我得到的是:
data: [],
paging: cursors {
after: "some token",
before: "some token"
}
沒有一個和下一個鏈接...
我想聽聽爲什麼它有ppen ...
謝謝。
那些'cursors'是分頁實現的一部分,你可以使用這些值自己做出相應的prev/next請求 - 你只需要將它們追加到你的原始查詢。 https://developers.facebook.com/docs/graph-api/using-graph-api/#paging – CBroe