Before using the RealTimeListener activity to subscribe to data changes in a Facebook page, enable the Facebook page to be managed by applications.
Prerequisites
Ensure that you have configured a process that contains a RealTimeListener activity.
Procedure
Log on to Facebook, and then click
Manage Apps of the
DEVELOPER item in the left panel.
Select the application that you want to use.
In the left panel, click
Settings > Basic.
Select appropriate category from the
Category list in the right panel, and then click
Save Changes.
Go to
Graph API explorer and select valid
Page Token for which you want to subscribe.
In the
Graph API tool, click on
POST method and add
susbcribed_fields(key) and feed(value) parameters. Use
pageid/subscribed_apps in the tool and click
Submit after selecting appropiate page token.
Note: If you have completed this procedure, you can skip this step.
The fields have been subscribed.
In the
Webhooks section, click
Setup Webhooks.
The
New Page Subscription page is displayed, and the
Callback URL and the
Verify Token fields are filled automatically.
Select the check boxes of the subscription fields that you want to subscribe to, and then click
Verify and Save.