/** TODO
* - Implement a method for the administrator to delete all configuration data the plugin has created,
* e.g. the app_access_token
- * - Implement a configuration option to set the polling interval system-wide
*/
- define('FACEBOOK_MAXPOSTLEN', 420);
+ // Size of maximum post length increased
+ // see http://www.facebook.com/schrep/posts/203969696349811
+ // define('FACEBOOK_MAXPOSTLEN', 420);
+ define('FACEBOOK_MAXPOSTLEN', 63206);
define('FACEBOOK_SESSION_ERR_NOTIFICATION_INTERVAL', 259200); // 3 days
+define('FACEBOOK_DEFAULT_POLL_INTERVAL', 60); // given in minutes
+define('FACEBOOK_MIN_POLL_INTERVAL', 5);
+
+
function facebook_install() {
register_hook('post_local', 'addon/facebook/facebook.php', 'facebook_post_local');
register_hook('notifier_normal', 'addon/facebook/facebook.php', 'facebook_post_hook');