如何使用Botframework将消息发送到Postman的Facebook频道

发布于 2025-02-09 18:42:35 字数 804 浏览 0 评论 0原文

我正在尝试通过Postman的Botframework将消息发送到Facebook频道,但我收到的403条被禁止。它可以与Facebook完美搭配,但我需要直接向Bot Facebook频道发送一些消息,就像我在Direct Line Channel中一样。

}}} ,但它总是返回403。

我已经尝试了此端点:https://facebook.botframework.com/api/v1/bots/ { {

{botname token}}

content-type:application/json

主体:

{
  "text": "test",  
  "textFormat": "plain",
  "type": "message",
  "channelId": "facebook",
  "from": {
    "id": "0123456789",
    "name": "User-1234",
    "role": "user"}
}

I'm trying to send message to Facebook Channel in botframework from Postman, but I'm receiving 403 forbidden. It works perfectly with Facebook but I need to send some message directly to the Bot Facebook channel, like I do in direct line channel.

I've try this endpoint: https://facebook.botframework.com/api/v1/bots/{{BOTNAME}} but it always return a 403.

[Update]

Authorization: Bearer {{TOKEN}}

Content-Type: application/json

Body:

{
  "text": "test",  
  "textFormat": "plain",
  "type": "message",
  "channelId": "facebook",
  "from": {
    "id": "0123456789",
    "name": "User-1234",
    "role": "user"}
}

enter image description here

[Update 2]

Facebook messenger conversation that I need to send one message from external source.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文