Open scogley opened 8 years ago
this is from code sample on facebook-sdk github get_posts.py. It shows using a while loop and requests to get the next page of data.
while True: try:
# Facebook.
[some_action(post=post) for post in posts['data']]
# Attempt to make a request to the next page of data, if it exists.
posts = requests.get(posts['paging']['next']).json()
except KeyError:
# When there are no more pages (['paging']['next']), break from the
# loop and end the script.
break
currently I am retrieving only 25 photos when contacting the graph api photos edge me/photos. need to determine how to get more.