We use AWS Amplify command line to update the Amazon Cognito configuration on the backend and add support for Login With Facebook.
It is important to not overwrite the values we entered previously, be sure to follow instructions carefully.
In a terminal, type:
cd $PROJECT_DIRECTORY amplify update auth
What do you want to do? Choose Update OAuth social providers and press enter
Select the identity providers you want to configure for your user pool: Use the arrow keys to highlight Facebook and press space, then press enter.
Enter your Facebook App ID for your OAuth flow:. Enter the Facebook App Id that you noted in previous section. (for example
Enter your Facebook App Secret for your OAuth flow. Enter the Facebook App Secret that you noted in previous section. (for example
amplify creates the required resources to depoy your storage service in the cloud.
In a Terminal, assuming you are still in your project directory, type:
Amplify updates the backend infrastructure, it adds the federation configuration to Amazon Cognito. After a while, you should see the familiar message :
✔ All resources are updated in the cloud