问题
I'm trying to subscribe a Facebook page to my facebook app. It's a messenger app where I need to subscribe the page to my webhook added in the app.
Using the graph API, I have the page access token and page id, I have tried the subscribed_apps API but it didn't work
FB.api('/' + page.id+ '/subscribed_apps?access_token=' +
page.access_token,function (response) {
console.log(response)
});
Is there an API to make the page to subscribe to my webhook in the app.
回答1:
It is described in the Graph API reference:
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/#Creating
来源:https://stackoverflow.com/questions/46690731/how-to-subscribe-a-fb-page-to-a-facebook-app