Prakash
Prakash

Reputation: 482

Facebook: What is the graph api for subscribing user to the Facebook (webhook) for real time change

I am referring following links to the Facebook documentation for real time subscription.

https://developers.facebook.com/docs/graph-api/webhooks https://www.facebook.com/marketingdevelopers/videos/883648801749520/

For the page, the graph api v2.6/{page-id}/subscribed_apps is used for subscribing the page to the app.

I am looking for the graph api for subscribing user to the app for the real time changes.

Upvotes: 0

Views: 767

Answers (1)

C3roe
C3roe

Reputation: 96413

I am looking for the graph api for subscribing user to the app for the real time changes.

There is no such endpoint.

For updates from users, you don’t need to create an individual subscription for every single one, like you need to do with pages.

You just do the general setup, that subscribes your app to updates for certain fields/edges of the user object. You then will get updates automatically for the users of your app, when a change on those happens (provided that the users gave your app the necessary permissions to read that kind of data.)

Upvotes: 1

Related Questions