Asking facebook for data of multiple users in single request using FB.api

Posted by gruszczy on Stack Overflow See other posts from Stack Overflow or by gruszczy
Published on 2011-06-28T20:56:00Z Indexed on 2011/06/29 8:23 UTC
Read the original article Hit count: 396

Filed under:

I need to get basic user data from Facebook using FB.api('/<some_id>/'). This works well, but is slow, since I need to ask for every id separately and make several calls to facebook. Is there any way to gather all ids and ask for them in single request and get an array?

EDIT

I am not asking for user friends. I am actually trying to gather friends' friends of a user and that's something Facebook doesn't provide, that's why I am using graph.facebook.com/<id>/ rather than graph.facebook.com/me/friends. I don't want friends, I'd like to do something like this: graph.facebook.com/<id1>,<id2>,<id3>,../

© Stack Overflow or respective owner

Related posts about facebook