如何将FB页面订阅到Facebook应用程序? [英] How to subscribe a FB page to a facebook app?

查看:128
本文介绍了如何将FB页面订阅到Facebook应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Facebook页面订阅到我的Facebook应用程序.这是一个Messenger应用程序,我需要将该页面订阅到应用程序中添加的Webhook.

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.

使用图形API,我具有页面访问令牌和页面ID,我已经尝试了subscribed_apps API,但没有用

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)
        });

是否有API可以使页面在应用程序中订阅我的Webhook.

Is there an API to make the page to subscribe to my webhook in the app.

推荐答案

在Graph API参考中对其进行了描述:

It is described in the Graph API reference:

https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/#Creating

这篇关于如何将FB页面订阅到Facebook应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆