Facebook Messenger API “URL COULD NOT BE VALIDATED”

前端 未结 3 1283
栀梦
栀梦 2021-02-19 17:12

I\'m trying to setup the Facebook messenger API and I\'m getting this error when I attempt to add the WebHook:

The URL couldn\'t be validated. Callback ve

相关标签:
3条回答
  • 2021-02-19 17:42

    Forgot to answer this, but I found out that I added a ca file and parameter to my https server and Facebook then accepted it.

    0 讨论(0)
  • 2021-02-19 17:44

    You can use the chained certificate by the following shell:

    cat www.example.com.crt bundle.crt > www.example.com.chained.crt

    From http://nginx.org/en/docs/http/configuring_https_servers.html#chains

    0 讨论(0)
  • 2021-02-19 17:57

    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.

    Because, Facebook escapes special characters for webhooks' verify tokens.

    0 讨论(0)
提交回复
热议问题