async def check_hook(self, request: HttpRequest):
        """
        Called when Facebook checks the hook
        """

        verify_token = request.query.get('hub.verify_token')

        if not verify_token:
            return json_response({
                'error': 'No verification token was provided',
            }, status=400)

        if verify_token == self.verify_token:
            return Response(text=request.query.get('hub.challenge', ''))

        return json_response({
            'error': 'could not find the page token in the configuration',
        })