friendica/friendica-addons — pull request #46 by CatoTH (2012-04-17 09:42:54+00:00)
Title: Several changes to Facebook-Connector

Hi,

this is a rather big patch of changes to the connector, so I'd be grateful if someone besides myself reviewed / tested these changes.
The main changes are:
- The routine to synchronize contacts with FB is rewritten. Instead of fetching the data of every contact in one request, it uses batch-requests (http://developers.facebook.com/docs/reference/api/batch/). While synching all friends still takes some time, at least it's not that slow as before anymore. (For me with 130 fb-contacts, its 15-20s now, instead of 1-2m before)
- The installation instructions by Martin Farrent is linked to. The ones provided in the README were obsolete anyway.
- PHP Documentor comments are added (it makes editing in an IDE more convenient)
- Some Code-Problems are solved (call-time reference is not supported in 5.4 any more; the $importer and $uid were not set at some points in the code)
- Some notices when using error_reporting(E_ALL) are avoided
- Variables that were not used anywhere in the code are removed. This is for code clarity.