URL For Batch Request to Get Multiple User feeds in Single Response.

14 views
Skip to first unread message

kapil sangwan

unread,
Sep 18, 2012, 3:48:57 AM9/18/12
to bat...@googlegroups.com
Hi,

I wanted to get the feed of multiple users in single batch request. Right now I am fetching data for single user at a time with url "https://graph.facebook.com/facebookUserName/posts?access_token=************&limit=500"

Here response returned will be only of one user. This is too slow when I have thousands of users so I am looking for an option to get multiple user feed in single request. I know that the limit of users in a batch request is 50 but I am not able to form the url by which I will get the response.

Please help me and provide me the sample url for multiple user at a time, I am facing this performance issue on my production machine, have to resolve this asap.

Jeff Schnitzer

unread,
Sep 18, 2012, 1:37:59 PM9/18/12
to bat...@googlegroups.com
I'm not quite sure what your question is. Just enqueue one request
for each user; BatchFB will take care of fitting them into optimal
batches.

You might also be able to double-up the amount of work per request
using field expansion:

https://developers.facebook.com/docs/reference/api/field_expansion/

I'm not sure about this, but you could try doing the equivalent of:

?ids=u1,u2,u3&fields=posts

...and if that works, you can do both this and use batching. You'll
have to do some experimentation to find out what the optimal
combination is.

Jeff
Reply all
Reply to author
Forward
0 new messages