如何使用Botframework将消息发送到Postman的Facebook频道
我正在尝试通过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"}
}
[Update 2]
Facebook messenger conversation that I need to send one message from external source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论