summaryrefslogtreecommitdiff
path: root/scripts/facebookqueuehandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/facebookqueuehandler.php')
-rwxr-xr-xscripts/facebookqueuehandler.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/facebookqueuehandler.php b/scripts/facebookqueuehandler.php
index a505e8ecc..f9123db8c 100755
--- a/scripts/facebookqueuehandler.php
+++ b/scripts/facebookqueuehandler.php
@@ -27,6 +27,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
+// Preset the server at the command line
+
+$server = ($argc > 2) ? $argv[2] : null;
+$path = ($argc > 3) ? $argv[3] : null;
+
require_once(INSTALLDIR . '/lib/common.php');
require_once(INSTALLDIR . '/lib/facebookutil.php');
require_once(INSTALLDIR . '/lib/queuehandler.php');
@@ -35,12 +40,12 @@ set_error_handler('common_error_handler');
class FacebookQueueHandler extends QueueHandler
{
-
+
function transport()
{
return 'facebook';
}
-
+
function start()
{
$this->log(LOG_INFO, "INITIALIZE");
@@ -51,7 +56,7 @@ class FacebookQueueHandler extends QueueHandler
{
return facebookBroadcastNotice($notice);
}
-
+
function finish()
{
}