I am trying to set up account linking between a FB Messenger bot and AWS Cognito user pool using OAuth.
I have used Messenger account linking button template and pointed it to my Cognito domain login endpoint. Then set the callback URL in Cognito app client as https://facebook.com/messenger_platform/account_linking/ since that is what Messenger sends.
I keep getting a "redirect_mismatch" error from Cognito. I have observed that the redirect URI appended by Messenger while login has a query string parameter called "account_linking_token". Does that have something to do with it? Since the account_linking_token is dynamic and changes with every request.
What am I doing wrong here?