我们如何从facebook发送api的用户ID获取Page-scoped-id?

问题描述 投票:1回答:1

在Facebook上次更新之前,我通过传递用户参考参数并获取收件人ID作为响应来使用Facebook发送消息API。

现在,当我们使用recipient.user_ref或recipient.phone_number来识别邮件收件人时,Facebook发送邮件API不会在响应中返回recipient_id。

现在他们正在使用这样的Page scope id参数

recipient": {
"id": "<PSID>"
},

如何获取此页面范围ID?所以我可以通过这个发送API?

facebook facebook-messenger-bot facebook-chatbot shopify-app facebook-messages
1个回答
0
投票

正确,在user_ref和电话号码发送的API响应中不再返回PSID。当用户响应消息时,您将在webhook事件的sender.id属性中收到PSID。

© www.soinside.com 2019 - 2024. All rights reserved.