Facebook Webhook Subscriptions (Alerts)
Webhooks allow you to receive real-time notifications of changes to your Facebook page. For example, you can get notification whenever users post to your feed, comment on a post, like your posts or fill up lead form.
There are two steps for setting up Webhooks.
Step 1: Verification Request
Inside the Facebook developer platform, navigate to: Use Cases > Customize Pages API > Webhooks
Then, select product as page. In the Callback URL, enter the following:
https://your-domain.com/index.php?option=com_tftools&task=facebook.webhook&format=raw
In the verify token, enter the value as the Cron Token in the component options.
Click "Verify and save" button.
Step 2: Subscribe to Event Notifications
After verifying, you can subscribe to Alerts.
feed: Notifies you when an Page's feed has changed; posts, reactions, shares, and so on.
messages: Notifies you when your page has received a message via Messenger. For this, pages_messaging permission is required.
leadgen: Notifies you when lead form is submitted. For this, leads_retrieval permission is required.