Updated How to: Friendica’s Facebook connector (markdown)

MartinFarrent 2012-04-23 09:09:49 -07:00
parent cde900a5b4
commit d913b595ad

@ -105,14 +105,18 @@ All you need to do is go to your _Administration_ settings and visit the _Plugin
At this point, its a very good idea to _Activate Real-Time Updates_ to get Facebook posts as they happen. If you dont, the default Facebook poll interval is one hour. _(This interval can be decreased, but that would affect system resources dramatically and could make the system un-useable depending on the number of Facebook streams/items to process. With real-time updates, system resource usage will be significantly lower overall.)_
As an admin, you also have the option of checking the box to "synchronize comments" - which pertains to the problem of comments occasionally getting missed by the connector. _On a private server for yourself and a few friends or family members, you can safely activate this option with no further considerations - and then jump to the end of this document._ But if you are running a public server with many users, you should consider using the lockfile mechanism for your poller before switching this feature on. A lockfile protects you against the problem of having multiple copies of poller.php running. Since that phenomenon could corrupt your database, and can be caused by a large number of Facebook contacts being polled, a lockfile constitutes a very sensible measure. To implement it, decide which directory it should reside in. It should be a directory that is writeable by the web server (e.g. _/var/www/friendica_ ). Then add a line like this to .htconfig.php:
As an admin, you also have the option of checking the box to "synchronize comments" - which pertains to the problem of comments occasionally getting missed by the connector. On a private server for yourself and a few friends or family members, you can safely activate this option with no further considerations.*
Now, all members of your site can use the Facebook connector as described in the first sections of this document.
_This applies to you, too! While you have now activated the plugin for your site, you havent yet activated it for yourself as a user. Follow the steps at the beginning of this document to do that._
---------------------------
* **For public servers only**
If you are running a public server with many users, you should consider using the lockfile mechanism for your poller before switching the comment synchronization feature on. A lockfile protects you against the problem of having multiple copies of poller.php running. Since that phenomenon could corrupt your database, and can be caused by a large number of Facebook contacts being polled, a lockfile constitutes a very sensible measure. To implement it, decide which directory it should reside in. It should be a directory that is writeable by the web server (e.g. _/var/www/friendica_ ). Then add a line like this to .htconfig.php:
_$a->config['system']['lockpath'] = "/path/to/lockfile";_
So, if you use /var/www, it would be:
_($a->config['system']['lockpath'] = "/var/www";_
Now, all members of your site can use the Facebook connector as described in the first sections of this document.
_This applies to you, too! While you have now activated the plugin for your site, you havent yet activated it for yourself as a user. Follow the steps at the beginning of this document to do that._