src/WebhookRequestHandler.php
public function isValidVerifyTokenRequest()
    {
        if ($this->getRequest()->getMethod() !== 'GET') {
            return false;
        }

        $params = $this->getRequest()->getQueryParams();

        if (!isset($params['hub_verify_token'])) {
            return false;
        }

        return  $params['hub_verify_token'] === $this->verifyToken;
    }
public function isValidVerifyTokenRequest()
    {
        if ($this->getRequest()->getMethod() !== 'GET') {
            return false;
        }

        $params = $this->getRequest()->getQueryParams();

        if (!isset($params['hub_verify_token'])) {
            return false;
        }

        return  $params['hub_verify_token'] === $this->verifyToken;
    }
public function isValidVerifyTokenRequest ( ) { if ( $ this -> getRequest ( ) -> getMethod ( ) !== 'GET' ) { return false ; } $ params = $ this -> getRequest ( ) -> getQueryParams ( ) ; if ( ! isset ( $ params [ 'hub_verify_token' ] ) ) { return false ; } return $ params [ 'hub_verify_token' ] === $ this -> verifyToken ; }
Check if the token match with the given verify token.
This is useful in the webhook setup process.

@return bool
Check if the token match with the given verify token . This is useful in the webhook setup process .