Facebook API friends_get is extremely slow

Posted by IkimashoZ on Stack Overflow See other posts from Stack Overflow or by IkimashoZ
Published on 2010-04-20T03:12:41Z Indexed on 2010/05/29 1:32 UTC
Read the original article Hit count: 451

I have a PHP application running in iFrame mode. I am rendering an <fb:multi-friend-selector condensed="true"> inside of <fb:serverfbml> tags. This is inside a PHP file that calls a function that gets a list of user IDs using $facebook->api_client->friends_get();. The multi-friend selector renders just fine, but, when I leave the friend_get() call uncommented, the page takes between 15-20 seconds to load (confirmed with Firebug)! The goal is to limit the number of users displayed in the selector by building a list of user ids not to display, for use in the friend selector's exclude_ids parameter. And since it's "exclude_ids" and not "include_ids", I can't think of a way of getting around this api call. It seems to me there must be something I can do to make the api call faster, because I've seen friend selectors that load much more quickly.

© Stack Overflow or respective owner

Related posts about php

Related posts about facebook