MessengerWebhookVerifier
Table of Contents
Properties
-
$appSecret
: string
-
$psrFactory
: Psr17Factory|null
-
$verifyToken
: string
Methods
-
__construct()
: mixed
-
handleVerificationChallenge()
: ResponseInterface|null
-
verifySignature()
: bool
$appSecret
read-only
private
string
$appSecret
$psrFactory
read-only
private
Psr17Factory|null
$psrFactory
= null
$verifyToken
read-only
private
string
$verifyToken
__construct()
public
__construct(string $appSecret, string $verifyToken[, Psr17Factory|null $psrFactory = null ]) : mixed
Parameters
-
$appSecret
: string
-
-
$verifyToken
: string
-
-
$psrFactory
: Psr17Factory|null
= null
-
handleVerificationChallenge()
public
handleVerificationChallenge(ServerRequestInterface $request) : ResponseInterface|null
Parameters
-
$request
: ServerRequestInterface
-
Return values
ResponseInterface|null
verifySignature()
public
verifySignature(string $body, string $signature) : bool
Parameters
-
$body
: string
-
-
$signature
: string
-