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

Adding a button causes 500 error for FB

Open MironV opened this issue 10 years ago • 5 comments

Adding a button of action type "call" to a hero card intended for Facebook causes a 500 error. Facebook cards allow for a phone_number type which hooks directly into the dialer. Should be supported by "call".

MironV avatar Jul 29 '16 15:07 MironV

See https://github.com/Microsoft/BotBuilder/issues/677

LarsLiden avatar Jul 29 '16 20:07 LarsLiden

There is no card action type = "call" use type='openUrl' and value="tel:#########"

tomlm avatar Aug 03 '16 00:08 tomlm

note: we will see the tel: in the url and promote into the facebook phone_number type of button

tomlm avatar Aug 03 '16 00:08 tomlm

@tomlm I think the problem is that the type "call" is being mentioned here

ejadib avatar Aug 10 '16 20:08 ejadib

@tomlm; I have tried using openUrl for FB messengers button type 'phone_number' with no avail using the following:

builder.CardAction.openUrl(session, 'tel:XXXXX', 'button title');

Is this still a valid way of getting this to work within the bot builder?

Thanks, Scott

scottmcconnell avatar Jan 19 '17 03:01 scottmcconnell