src/WebhookRequestHandler.php
public function isValidCallbackRequest()
    {
        if (!$this->isValidHubSignature()) {
            return false;
        }

        $decoded = $this->getDecodedBody();

        $object = isset($decoded['object']) ? $decoded['object'] : null;
        $entry = isset($decoded['entry']) ? $decoded['entry'] : null;

        return $object === 'page' && null !== $entry;
    }
public function isValidCallbackRequest()
    {
        if (!$this->isValidHubSignature()) {
            return false;
        }

        $decoded = $this->getDecodedBody();

        $object = isset($decoded['object']) ? $decoded['object'] : null;
        $entry = isset($decoded['entry']) ? $decoded['entry'] : null;

        return $object === 'page' && null !== $entry;
    }
public function isValidCallbackRequest ( ) { if ( ! $ this -> isValidHubSignature ( ) ) { return false ; } $ decoded = $ this -> getDecodedBody ( ) ; $ object = isset ( $ decoded [ 'object' ] ) ? $ decoded [ 'object' ] : null ; $ entry = isset ( $ decoded [ 'entry' ] ) ? $ decoded [ 'entry' ] : null ; return $ object === 'page' && null !== $ entry ; }
Check if the request is a valid webhook request

@return bool
Check if the request is a valid webhook request