How to retrieve all posts of a user via Facebook Graph API using promises and recursion?
问题 I am currently developing a web app which uses the Facebook Graph API. What I would like to achieve is to get all posts of a user. However, this is not that easy since I have to paginate the results. At the moment I am struggeling with promises. What I try to achieve is to fill an array with the post objects. Therefore I use promises and recursion which does not work as expected. My code currently looks as follows: // Here I retrieve the user with his or her posts, // just the first 25 due to