Reputation: 640
Say I have 10k users for my app. Now, I would like to know whether a particular person updated a status message!
How does Facebook provide such calls and whats the best way to update the databases (they store keywords for public status messages)
Upvotes: 0
Views: 43
Reputation: 31685
Subscribe to Facebook Real-time Updates by sending a POST request to https://graph.facebook.com/<app-id>/subscriptions
with a parameter object
that has the value user
and a parameter fields
that has the value statuses
.
You will also need to provide
callback_url
on which facebook will perform a GET request to verify the subscription and POST requests for the actual updates andverify_token
that will be echoed to your callback_url
to verify the subscription,Upvotes: 3