Does anyone know why no matter how many comments a given graph status update object has, it will cap the comments at 25? I have a feeling it only returns a ‘sample’ of the actual comments on the object. How do I force it to get them all without using the FQL APIs?
Share
This is just the way the Graph API works. Take a look at the API docs. You get 25 at a time and have to loop through them. You can use the timestamp (created_time) of the last comment in the batch as a parameter in the next Graph API call or you can use the
offsetparameter. Which is what I’ve been doing. I was running into some screwiness usingcreated_time. This is an example from my C# test app. Ignore the references to thePostCommentobject that’s just a data structure I created to hold the data I’m pulling. The magic (and the process i’m referencing) is in the parameters being passed to the graph API call:I’m fairly certain you can set the “limit” to anything 25 or below.