We provide sample apps on GitHub, which you can set up and repurpose, or which you can use to quickly test your Webhooks configuration.
Let's walk through setting up a sample app on Heroku:
TOKEN. Assign (paste) your App Secret to the
APP_SECRET config var, and assign any string to
TOKEN. We will include this string in any verification requests when you configure the Webhooks product in the App Dashboard (the app will validate the request on its own).
Your app should now be ready to go. Before you return to your App Dashboard to configure the Webhooks product:
). This page will display newly received update notification data, so reload it throughout testing.
/facebook added to the end. You will need this Callback URL during product configuration.
TOKEN value you set above; you'll also need this during product configuration.
The app uses Node.js and these packages:
body-parser (for parsing JSON)
express (for routes)
express-x-hub (for SHA1 support)
You can easily verify that your sample app can receive Webhook events.
curl https://<your-subdomain>.herokuapp.com in a terminal window.