botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

HeroCard buttons don't work on facebook channel, please tell which card can I use on facebook channel

Open jimmyhawkins opened this issue 8 years ago • 7 comments

Bot Info

  • SDK Platform:
  • SDK Version:
  • Active Channels:
  • Deployment Environment:

Issue Description

Code Example

Reproduction Steps

1. 2. 3.

Expected Behavior

Actual Results

jimmyhawkins avatar Feb 08 '18 13:02 jimmyhawkins

Please fill out the template so we can better assist you

JasonSowers avatar Feb 08 '18 17:02 JasonSowers

var message = await result as Activity; var PrincipalMenu = new HeroCard { Title = "Welcome user", Subtitle = "¿What can I help you?", Buttons = new List { new CardAction(ActionTypes.ImBack, "Collections", value: "Collections"), new CardAction(ActionTypes.ImBack, "Information", value: "Information"), new CardAction(ActionTypes.ImBack, "SendMail", value: "SendMail") } };

        Attachment newAttachment = PrincipalMenu.ToAttachment();
        message.Attachments.Add(newAttachment);

        await context.PostAsync(message);

...... when select button like "Information" must show next element, in my case should be another menu, but instead of that it returns the message "Sorry, my bot code is having an issue.", and when I type directly on the keyboard that text in the value "Information", then the next menu shows, for now it works on skype and webchat

jimmyhawkins avatar Feb 08 '18 17:02 jimmyhawkins

What version of the SDK are you using?

JasonSowers avatar Feb 08 '18 18:02 JasonSowers

.Net Framework 4.6

Actually, I tried to create another bot with some of the original code and a single herocard, and this works perfectly.

The only different is that I add a try catch into MessageReceivedAsync.


De: Jason Sowers [email protected] Enviado: jueves, 08 de febrero de 2018 1:55:35 p. m. Para: Microsoft/BotBuilder Cc: Jimmy Hawkins; Author Asunto: Re: [Microsoft/BotBuilder] HeroCard buttons don't work on facebook channel, please tell which card can I use on facebook channel (#4172)

What version of the SDK are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/4172#issuecomment-364212419, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiCj6CO4pNZwYBLJpJgVzEj2z_jTaKvIks5tS0MngaJpZM4R-YDm.

jimmyhawkins avatar Feb 08 '18 19:02 jimmyhawkins

I meant the botbuilder SDK like it should be 3.x. SO you ?have resolved this on your own

JasonSowers avatar Feb 08 '18 19:02 JasonSowers

I don't know yet what is triggering that error, but with the second bot I can try to find what is it on my own.

but thanks.


De: Jason Sowers [email protected] Enviado: jueves, 08 de febrero de 2018 2:23:13 p. m. Para: Microsoft/BotBuilder Cc: Jimmy Hawkins; Author Asunto: Re: [Microsoft/BotBuilder] HeroCard buttons don't work on facebook channel, please tell which card can I use on facebook channel (#4172)

I meant the botbuilder SDK like it should be 3.x. SO you ?have resolved this on your own

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/4172#issuecomment-364220348, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiCj6IvRdFd8ldCe4m3DutHypQdpx8yVks5tS0mhgaJpZM4R-YDm.

jimmyhawkins avatar Feb 08 '18 19:02 jimmyhawkins

Thank you very much, I put a try catch into MessageReceivedAsync and into the herocards specified "title:" instead of just the text without the word "title:", and now my bot works perflectly.

Regards.


De: Jimmy Hawkins Enviado: jueves, 08 de febrero de 2018 2:28:11 p. m. Para: Microsoft/BotBuilder; Microsoft/BotBuilder Cc: Author Asunto: Re: [Microsoft/BotBuilder] HeroCard buttons don't work on facebook channel, please tell which card can I use on facebook channel (#4172)

I don't know yet what is triggering that error, but with the second bot I can try to find what is it on my own.

but thanks.


De: Jason Sowers [email protected] Enviado: jueves, 08 de febrero de 2018 2:23:13 p. m. Para: Microsoft/BotBuilder Cc: Jimmy Hawkins; Author Asunto: Re: [Microsoft/BotBuilder] HeroCard buttons don't work on facebook channel, please tell which card can I use on facebook channel (#4172)

I meant the botbuilder SDK like it should be 3.x. SO you ?have resolved this on your own

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/4172#issuecomment-364220348, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AiCj6IvRdFd8ldCe4m3DutHypQdpx8yVks5tS0mhgaJpZM4R-YDm.

jimmyhawkins avatar Feb 08 '18 19:02 jimmyhawkins