Business API Authentication #40
Replies: 2 comments
-
For verification, you will need to setup your callback URL to receive a get request from Meta and add your random string to verify the token. The verify token you set in meta must match with the verify token you set in the code and return a successful response to register your webhook. [HttpGet]
public ActionResult<string> ConfigureWhatsAppMessageWebhook([FromQuery(Name = "hub.mode")] string hubMode,
[FromQuery(Name = "hub.challenge")] int hubChallenge,
[FromQuery(Name = "hub.verify_token")] string hubVerifyToken)
{
_logger.LogInformation("Results Returned from WhatsApp Server\n");
_logger.LogInformation($"hub_mode={hubMode}\n");
_logger.LogInformation($"hub_challenge={hubChallenge}\n");
_logger.LogInformation($"hub_verify_token={hubVerifyToken}\n");
if (!hubVerifyToken.Equals(VerifyToken))
{
return Forbid("VerifyToken doesn't match");
}
return Ok(hubChallenge);
} |
Beta Was this translation helpful? Give feedback.
-
There are a few procedures and criteria to acquire access to the WhatsApp Business API. Here's a general overview of the procedure: Or you can simply connect with the whatsapp business solution provider such as msgclub who can provide you whatsapp business API to connect your CRMs, Payment Portals, eCommerce Platforms via APIs. Easy to connect API for Developers or integration. |
Beta Was this translation helpful? Give feedback.
-
How would I go about using this to implement the preliminary endpoint verification process before you set up the hooks? Rather, is it possible?
Beta Was this translation helpful? Give feedback.
All reactions