Unable to generate receipt card for facebook messenger
Hi, I am unable to generate receipt card for facebook messenger.
Exception Message Facebook graph API call failed with: BadRequest {"error":{"message":"(#100) The parameter is required","type":"OAuthException","code":100,"fbtrace_id":"EMwZFz9wR2A"}}
Are you using the ReceiptCard class? I managed to send the card but using Message.sourceEvent :/
Yes, I am using the Receipt class. Followed the documentation. I have tried with the same example they have mentioned on the page. I am able to send hero & thumbnail cards. The only problem is with Receipt card.
Hello are you still having this issue?
Yes.
Same here, never got a ReceiptCard to work on Facebook, although it shows up fine in the bot emulator. Judging by #644 the ReceiptCard may be broken now.
@msft-shahins @willportnoy FYI, the receipt card on Facebook is now throwing this error:
Facebook graph API call failed with: BadRequest {"error":{"message":"(#100) The parameter [summary][total_cost] is required","type":"OAuthException","code":100,"fbtrace_id":"D7N/8qwkicg"}}
but the code is setting the ReceiptCard.Total prop
+1
Same problem with builder.ReceiptCard() - It crashes
Problem still persists.... works fine on Skype and emulator
Can you post the raw message json that your bot is sending?
Hi
I got it working by supplying the Tax and Total properties with a value of '1' - Apparently FB does not like 0's in those fields.... Overall the Receipt card in FB is just that - to be used as a receipt , in Skype you can wangle it for other purposes but in FB it has currency symbols and other info added.