I have been successfully developing Facebook Messenger bots in the last two months and have recently been experiencing a problem where "postbacks" are sometimes not sent to my server, although simple messages with typed messages are sent immediately, and of course, web hooks check the fine.
Sometimes with enough breaks / subscriptions for web hooks and pages, the repeated reverse jobs work again, but I can't always get it to work again. I have some bots and some pages that are not sure if this is related.
Also, yes, I am currently subscribing to receive the postback.
Has anyone else experienced this? Thanks you
Update:
44 , . Facebook , , , 502. . AWS, , .
: - facebook, 502 ( , - , URL- webhook ). , , .
, , . , , , .
. , () , ( ) . , facebook , .
, Apache ( ). , SSL . , , AWS ( 443 80).
-? 21-22 .
, facebook messenger ( ). , ( , !!!).
, ! . .
webhook messaging_postbacks.
, , , , , postback, .
, facebook " ", , .
APP ( , ) , postbacks webhook, webhook "messaging_postbacks", .
, APP , , iD. , access_token.
As a best practice, I hardcode the access token (more secure, since the generated access_tokens expires after a while) if the environment is not prod, and use the logic to generate the token when the application is active.