amazon-connect / amazon-connect-message-streaming-examples

This repository contains an example project on how to get started with Amazon Connect Chat Message Streaming APIs to enable SMS and Facebook messenger channels for customer service.
MIT No Attribution
23 stars 39 forks source link

No call made to API GTW from my Facebook page (via Messenger) #16

Closed LucMacPaquet closed 2 years ago

LucMacPaquet commented 2 years ago

Hi

There have been a couple of times that the message entered into a Facebook page (FB Messenger) has triggered a call to AWS API Gateway. The logs show it to me.

But, without my understanding why, 99.99% of the time, no call is made between Facebook and our API (AWS). How can I see what if something is wrong on the Facebook side? Any steps to follow to troubleshoot the whole thing ?

Thanks

LucMacPaquet commented 2 years ago

Here is more information. The problem is that nothing happens on the AWS side when someone enters a message in the Facebook page (via FB Messenger). I can confirm that as soon as we use tools like Postman, Powerautomate or even the test tool on the FB Dev page, we see the API call arrive and then the Lambda Inbound function trigger. So it seems obvious to me that there is a problem on the FB side. I followed the procedure to be a valid DEV for this app from FB side. (You're a verified admin on this app.).

Do you have a way to troubleshoot what is happening on the FB side?

FYI, I deleted everything from the app in FB Dev to redo it and I have the same problem. I also tried with another FB page without success.

LucMacPaquet commented 2 years ago

Hello. The problem is solved. The bug comes from my misunderstanding of how FB applications work and a lack in the documentation of the blog and the Github page. After having done all the procedure, it is necessary to create roles for test users in the FB application. A text mentions it on the app page, but I hadn't noticed it. Thank you again for your help.