How to subscribe a FB page to a facebook app?

孤街浪徒 提交于 2019-12-12 18:28:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!