nov / fb_graph

This gem doesn't support FB Graph API v2.0+. Please use fb_graph2 gem instead.
MIT License
1.04k stars 191 forks source link

Pagination: __after_id parameter is missing #306

Closed Kukunin closed 11 years ago

Kukunin commented 11 years ago

Facebook uses __after_id parameter to exclude the last ID from the new page. You can notice it on next and previous links:

"paging": {
    "next": "https://graph.facebook.com/350128951735548_438426006239175/comments?limit=10&offset=20&__after_id=350128951735548_438426006239175_1719134", 
    "previous": "https://graph.facebook.com/350128951735548_438426006239175/comments?limit=10&offset=0&__before_id=350128951735548_438426006239175_1719117"
}

It seems, fb_graph doesn't handle them, so I receive the 31 comments from Facebook, while there are only 29.