Facebook API Webhook verification

(Kurt Anderson) #1

I’m having an issue with connecting my bot to Facebook’s API using webhooks. I created a new flow which I’ve shared:

https://flowxo.com/hooks/a/nkke843g

and added a trigger to Recieve a Webhook, which generated the webhook, which I presented to FB as shown here:

This is the error message:

The URL couldn’t be validated. Response does not match challenge, expected value=“985255940”, received="[200] success"

This facebook developer guidance shows that I must pass back the explected value, as shown in this developer documentation:

Does anyone have some guidance on how to resolve this issue?

Thanks!

Kurt

(Kurt Anderson) #2

I forgot to include the interaction details screenshot:

(Daniel Beckett) #3

Hi Kurt,

It looks like the API is expecting a specific postback value rather than the standard https success (200) message that we return. Unfortunately it may not be possible to use that specific API through the webhooks.

You could try using the ‘Make a Custom Request’ service instead to see if that works? There’s some auth details passed automatically then.

(Kurt Anderson) #4

Hi Daniel,

Have you a suggestion on how I might accomplish that using flowxo’s custom request?

Are you saying that it might be possible to accomplish the postback using custom request then use the API after that point?

Kurt

(Kurt Anderson) #5

I’m surprised that nobody has solved this problem before, considering that most people would seem to be building bot on fb messenger, and using fb api’s would seem to be the way to accomplish most advanced bot capabilities?

Kurt

(Daniel Beckett) #6

Hi Kurt,

I’ve had another look over this and I’m sorry but it doesn’t look like it is possible, even with a custom request. Any API calls that are dependent on postback data aren’t currently supported.

(Kurt Anderson) #7

Thanks for the update Daniel.

I imagine I will have to get creative on this one. Perhaps, I will need to have a webhooks ‘repeater’ which has the capability of postbacks, and then call that repeater from flowxo. Does this seem possbile, or I wonder if anyone here in the community has accomplished this?

(Kurt Anderson) #8

I wonder if I could setup a webhook listener which would support callbacks, which would then act as a repeater to push the webhook to flowxo, essentially creating a webhook repeater.

Do you or anyone in the community have any thoughts on the feasibility of doing something like this?