We are trying to connect n8n to the Facebook Messenger API. We are currently using the webhook node, which we want to use to establish the connection. When we enter the test URL from n8n into the callback URL field in the Messenger API settings, we get the message: “The callback URL or verify token couldn’t be validated. Please verify the provided information or try again later.” However, we do receive data through n8n, so the connection works in some way. When we then enter a production URL, we see the same message again: “The callback URL or verify token couldn’t be validated. Please verify the provided information or try again later.” in the Messenger API settings, but no data comes into n8n anymore. We ultimately need this production URL to complete the next steps in the Messenger API.
This is our workflow:
First, we create a Webhook node with the response setting: Using ‘Respond to Webhook’ Node. Then we have an if-node where we match the security token with what we generate ourselves, and afterwards, we ensure that the hub challenge from Facebook returns the 200 code. Is there something we are doing wrong to establish this connection, or are we missing something?