Java Example of a Facebook Messenger Webhook Implementation

by | Oct 30, 2018

 

Java implementation of a Facebook Messenger Webhook.

Note that it is a requirement to have an SSL certificate for the webhook. For development, I did not have a certificate, nor a public IP. I got around that by registering an account at NGROK and letting NGROK handle the SSL aspect for me. Note that you need to recreate your access tokens each time you restart NGROK as the public URL will change with a free NGROK account.