Skip to content

Commit cb78d06

Browse files
authored
facebook removed the "name" field
didn't use it, but asserted for it. remove the assert.
1 parent 0d54425 commit cb78d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php/relays/facebook.relay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function sendMessage(string $message): bool {
4242
return $ret;
4343
});
4444
$postfields = $postfields ();
45-
assert ( array_key_exists ( 'name', $postfields ) );
45+
//seems facebook removed this field: assert ( array_key_exists ( 'name', $postfields ) );
4646
assert ( array_key_exists ( 'body', $postfields ) );
4747
$postfields ['body'] = $message;
4848
$urlinfo = \parse_url ( $hc->getinfo ( CURLINFO_EFFECTIVE_URL ) );

0 commit comments

Comments
 (0)