From cb78d06a600330262535435f12854f08f505af57 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Fri, 20 Jan 2017 14:51:28 +0100 Subject: [PATCH] facebook removed the "name" field didn't use it, but asserted for it. remove the assert. --- src/php/relays/facebook.relay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php/relays/facebook.relay.php b/src/php/relays/facebook.relay.php index 2aee0ba..00e4906 100644 --- a/src/php/relays/facebook.relay.php +++ b/src/php/relays/facebook.relay.php @@ -42,7 +42,7 @@ public function sendMessage(string $message): bool { return $ret; }); $postfields = $postfields (); - assert ( array_key_exists ( 'name', $postfields ) ); + //seems facebook removed this field: assert ( array_key_exists ( 'name', $postfields ) ); assert ( array_key_exists ( 'body', $postfields ) ); $postfields ['body'] = $message; $urlinfo = \parse_url ( $hc->getinfo ( CURLINFO_EFFECTIVE_URL ) );