warning message if Facebook post does not succeed. It happens quite a lot.
This commit is contained in:
parent
55e727de64
commit
558962169f
1 changed files with 14 additions and 10 deletions
|
@ -624,7 +624,7 @@ function facebook_post_hook(&$a,&$b) {
|
|||
// "test_mode" prevents anything from actually being posted.
|
||||
// Otherwise, let's do it.
|
||||
|
||||
if(! get_config('facebook','test_mode'))
|
||||
if(! get_config('facebook','test_mode')) {
|
||||
$x = post_url($url, $postvars);
|
||||
|
||||
$retj = json_decode($x);
|
||||
|
@ -634,9 +634,13 @@ function facebook_post_hook(&$a,&$b) {
|
|||
intval($b['id'])
|
||||
);
|
||||
}
|
||||
else {
|
||||
// FIXME queue the message so we can attempt to redeliver, see include/notifier.php and include/queue.php
|
||||
notice( t('Facebook delivery failed.') . EOL);
|
||||
}
|
||||
|
||||
logger('Facebook post returns: ' . $x, LOGGER_DEBUG);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue