everyone
I'm trying to use WhatsApp Cloud API to check if the user has WhatsApp number or not as the documentation says
"Use the contacts node to manage WhatsApp users in your database by validating them before sending messages and verify a user's identity with identity hashes."
that's the example they are using
POST /v1/contacts
{
"blocking": "wait" | "no_wait",
"contacts": [
"16315551000",
"+1 631 555 1001",
"6315551002",
"+1 (631) 555-1004",
"1-631-555-1005"
],
"force_check": false | true
}
I'm trying to make the same but the full URL path I don't understand what I tried to use
POST https://graph.facebook.com/v17.0/my id/contacts
{
"blocking": "wait" | "no_wait",
"contacts": [
"16315551000",
"+1 631 555 1001",
"6315551002",
"+1 (631) 555-1004",
"1-631-555-1005"
],
"force_check": false | true
}
I got this error
{
"error": {
"message": "(#100) Tried accessing nonexisting field (contacts) on node type (WhatsAppBusinessPhoneNumber)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "A5MGkXpkaDoIGEjsx9Mu2ER"
}
}