影响webhook的响应

影响webhook的响应

本文介绍了如何“数据访问到期"?影响webhook的响应?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我们的团队正在实施小型后端,以提供Facebook chatbot功能,该功能必须能够处理附加到它的多个粉丝页面.

Me and our team are in the process of implementation small backend providing facebook chatbot functionality, which has to be able to handle multiple fanpages attached to it.

当Facebook回调到达webhook时,我们可以轻松地识别出它属于哪个扇页,并从db有效页访问令牌中进行选择,该有效页访问令牌是我们在扇页和前端应用程序集成过程中收到的(集成被理解为用户登录到的进程)我们的应用程序向我们授予了他的粉丝专页的权限.

When facebook callback arrives to webhook, we can easily recognize which fanpage it belongs to and select from db valid page access token, which we receive during process of integration of fanpage and our frontend application (integration understood as process which user logged to our application gives us permissions to his fanpage).

我们决定扩展页面访问令牌,使其永不过期,并解决重复给用户提供扇形访问权限的整个过程(前面提到的集成)的问题.

We decided to extend page access token that it never expires and that solves problem of repeating whole process of giving us permissions to fanpage by user (integration mentioned before).

我们想知道数据访问到期".据我们了解,此期限始终为90天,并且不能延长.它对发送给Messenger用户的响应有何影响?这个期限到期后,我们能否对发送到Webhook的消息做出正确的响应?

We are wondering about "Data access expires". From our knowledge, this term is always 90 days, and it cannot be extended. How it affects on sending responses to messenger users ? Will we be able to correctly response on messages sent to webhook after this term expires ?

推荐答案

https://developers.facebook.com/docs/facebook-login/auth-vs-data#data-access :

  • ads_read business_management
  • configure_page_transactions
  • manage_pages
  • pages_manage_cta
  • pages_manage_instant_articles
  • pages_messaging
  • pages_show_list
  • publish_pages
  • read_audience_network_insights
  • read_insights ads_management

manage_pages pages_messaging 是实现您的目的所必需的仅有的两个,因此应该将其覆盖.

manage_pages and pages_messaging are the only two that are necessary for your purpose, so that should cover it.

这篇关于如何“数据访问到期"?影响webhook的响应?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:17