async def check_hook(self, request: HttpRequest):
verify_token = request.query.get('<STR_LIT>')<EOL>if not verify_token:<EOL><INDENT>return json_response({<EOL>'<STR_LIT:error>': '<STR_LIT>',<EOL>}, status=<NUM_LIT>)<EOL><DEDENT>if verify_token == self.verify_token:<EOL><INDENT>return Response(text=request.query.get('<STR_LIT>', '<STR_LIT>'))<EOL><DEDENT>return json_response({<EOL>'<STR_LIT:error>': '<STR_LIT>',<EOL>})<EOL>
Called when Facebook checks the hook