- Newest
- Most votes
- Most comments
We found out that unlike Google App which was readily in test mode, Facebook app needs another step which is to "Create Test App". From Facebook apps list dropdown, select your app and tap on "Create Test App". It will generate another App ID and App secret that should be registered in cognito for testing. Might be a good idea to have this information added as a note in the developer guide.
Hi,
You code doesn't make any override of the Facebook API version. Documentation recommends 2.12 as per https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-configuring-federation-with-social-idp.html
Facebook — Enter the app client ID and app client secret generated in the previous
section, and then choose an API version (for example, version 2.12). We recommend
choosing the latest possible version, as each Facebook API has a lifecycle and deprecation
date. Facebook scopes and attributes can vary between API versions. We recommend testing
your social identity log in with Facebook to ensure that federation works as intended.
The samples that you point to have a Facebook version variable (lines 57 & 320). But your code doesn't have such a variable. Default is probably not 2.12 as recommended, so you should set it..
In case you already overwrote the API, did you try to create a trail with CloudTrail to get more infos about the issue? The idea is to see if any call is made to Cognito API and with which parameters.
See https://docs.aws.amazon.com/cognito/latest/developerguide/logging-using-cloudtrail.html on how to do it.
Please, post those details when you have them if you need further support
Hope it helps, Didier
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 9 months ago
Thank you for checking. From our investigation, minimum version supported is now at v11.0. And if not set (blank even in console), latest v17.0. is used so we left it as is. And, just now we found out what was causing our issue and it was very basic. We will add it as an answer. Thanks again.