Hello Danilo Toro,
Few things to check here -
- Try isolating the code and use Postman/Graph Explorer to call same API and observe results.
- Try Checking if you are getting the request on the notificationUrl.
- Do note notificationUrl must be capable of responding to the validation request.
- Also, you need to make sure that the validation token returns as plain/text. Please refer to the Notification endpoint validation document for details.
- Response within 10 seconds 200 (OK) status code. content type must be text/plain. body must include the validation token.