android-simple-facebook icon indicating copy to clipboard operation
android-simple-facebook copied to clipboard

hasNext(), getNext(), getPrev() possibly not working.

Open xsorifc28 opened this issue 9 years ago • 0 comments

It looks like the Cursor pagination functions have stopped working. I tried looking into the issue but was unable to find the cause.

Edit: Specifically, I'm working with getting tagged places from Facebook. My account has 23 tagged places, where as response I'm getting is 21. I am not able to getNext(), hasNext() is returning false.

At the end of the tagged_places response data, I see:

"paging": {
  "cursors": {
    "before": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
    "after": "XXXXXXXXXXXXXXXXXXXXXXXXXX"
  }
}

This makes me think there should be another page. But then again, I'm not entirely sure this is the correct pagination response. If i query my photos, the pagination looks like:

"paging": {
  "cursors": {
    "before": "XXX...XXX",
    "after": "XXX...XXX"
  },
  "next": "https://graph.facebook.com/v2.5/**userId**/photos?access_token=**access_token**pretty=0&limit=25&after=XXX...XXX"
}

Here, the after in the URL is the same as the after under paging->cursors.

Based on this, the error seems to be in the tagged_places endpoint?

Any ideas/suggestions?

xsorifc28 avatar Dec 29 '15 19:12 xsorifc28