Closed michaelabon closed 11 years ago
iter_pages crashes when attempting to paginate past the final page. next_url = json_response['paging']['next'] has a KeyError when the json response lacks a next key. The next key is not included if this is the last page of data.
iter_pages
next_url = json_response['paging']['next']
KeyError
next
https://developers.facebook.com/docs/reference/api/pagination/
Thanks for the fix!
iter_pages
crashes when attempting to paginate past the final page.next_url = json_response['paging']['next']
has aKeyError
when the json response lacks anext
key. Thenext
key is not included if this is the last page of data.https://developers.facebook.com/docs/reference/api/pagination/