Bot Framework openUrl not working for suggested action on messenger

匿名 (未验证) 提交于 2019-12-03 08:46:08

问题:

I am creating facebook bot using Bot Builder Node.js sdk and I am trying to create suggested action, which would navigate users to web page. I know, that facebook has limitation, that it redirects only to https endpoints, but as the the page I am redirecting to is https, this is clearly not a problem. Here is my code:

var msg = new builder.Message(session) .text("User message here") .suggestedActions(     builder.SuggestedActions.create(             session, [                 builder.CardAction.imBack(session, "command1", "Command1"),                 builder.CardAction.imBack(session, "command2", "Command2"),                 builder.CardAction.openUrl(session, "https url", "Go to web")             ]         ));  session.send(msg); 

Problem is, that when I click the openUrl action on messenger, nothing happens. It works properly on emulator. Please, can somebody help me, how to solve this issue? Thank you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!