Skip to content

Commit

Permalink
facebook removed the "name" field
Browse files Browse the repository at this point in the history
didn't use it, but asserted for it. remove the assert.
  • Loading branch information
divinity76 authored Jan 20, 2017
1 parent 0d54425 commit cb78d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/relays/facebook.relay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit cb78d06

Please sign in to comment.