Facebook API — The URL couldn’t be validated.

Written by xameeramir | Published 2017/12/24
Tech Story Tags: bots | facebook | facebook-messenger | api | chatbots

TLDRvia the TL;DR App

credit: https://my.kualo.com/uk/knowledgebasekualo.php?kbcat=0&article=120

Was trying to setup FB messenger webhook with a strong verify token. Somewhat like this: o\/ERviEE\/vt0|<E|\|

The same is been verified in the code:

req.query['hub.verify_token'] === 'o\/ERviEE\/vt0|<E|\|'

However, the value received from FB is: o\\/ERviEE\\/vt0|<E|\\|

This is strange. There seems to be no document reference as such which talks about how Facebook escapes special characters for verify tokens or alike. Not sure if this happens for other entities as well.

Conclusion: need to be a little bit cautious when using special characters for verify tokens.

Originally published at xameeramir.github.io.


Published by HackerNoon on 2017/12/24