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

[Node.js SDK] CardAction "imBack" on Facebook messenger posts back the Title and not the Message

Open nsantini opened this issue 9 years ago • 4 comments

Bot Info

  • Bot handle:
  • App ID:
  • SDK Platform: Node.js
  • SDK Version: 3.10.1
  • Active Channels: WebChat, Facebook
  • Deployment Environment: Auzure Bot Service

Issue Description

Im using a HeroCard and passing a "imBack" CardAction as shown in the example https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-send-rich-cards When I test this on WebChat or Emulator it works as expected. When I use Facebook messenger however, it returns the Title instead of the Message

Code Example

Reproduction Steps

  1. Print a card with an imBack CardAction
  2. Click on the Action
  3. See the message added to the chat

Expected Behavior

The message specified in the imBack CardAction is entered on behalf of the user

Actual Results

The title specified in the imBack CardAction is entered on behalf of the user

nsantini avatar Oct 04 '17 22:10 nsantini

I just tested further. The bot prints the text provided in the Title, but the args.response contains the Message text

nsantini avatar Oct 05 '17 04:10 nsantini

The Emulator prints the Message text on the chat instead of the Title

This behaviour should be consistent across channels

nsantini avatar Oct 05 '17 19:10 nsantini

Same as #3555

peterbozso avatar Oct 07 '17 08:10 peterbozso

#3555 is .NET. What about Node?

lakmals avatar Nov 17 '17 09:11 lakmals