Documentation
¶
Overview ¶
Package graphhook holds the Meta Graph webhook plumbing shared by the Cloud API chat adapters (WhatsApp today, Messenger next): the one-time hub.challenge subscribe handshake and the X-Hub-Signature-256 raw-body HMAC check. Both compare in constant time via hmac.Equal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleVerify ¶
func HandleVerify(w http.ResponseWriter, r *http.Request, verifyToken string)
HandleVerify answers the subscribe handshake: it echoes the raw hub.challenge with a 200 iff hub.mode is "subscribe" and hub.verify_token matches verifyToken (constant time), and replies 403 otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.