*/
static function facebookBroadcastNotice($notice)
{
- common_debug("ZZZZZ facebookBroadcastNotice() - entered ", __FILE__);
$client = new Facebookclient($notice);
return $client->sendNotice();
}
*/
function isFacebookBound() {
- common_debug("ZZZZZ isFacebookBound() - entered", __FILE__);
-
if (empty($this->flink)) {
// User hasn't setup bridging
return false;
return true;
}
- common_debug(
- sprintf(
- "ZZZZZ isFacebookBound() - notice %d this notice does not go to Facebook",
- $this->notice->id
- ),
- __FILE__
- );
-
return false;
}
function handle($notice)
{
- common_debug(
- sprintf(
- 'ZZZZZ handle() - Looking at notice %d',
- $notice->id
- ),
- __FILE__
- );
-
if ($this->_isLocal($notice)) {
-
- common_debug(
- sprintf(
- 'ZZZZZ handle() - notice %d is local; will try sending to Facebook.',
- $notice->id
- ),
- __FILE__
- );
-
return Facebookclient::facebookBroadcastNotice($notice);
}
-
- common_debug(
- sprintf(
- 'ZZZZZ handle() - notice %d was not a local notice, so we wont rebroadcast it.',
- $notice->id
- ),
- __FILE__
- );
-
return true;
}