Social Login Example with Cognito User Pool vs Identity Pool

Hello, this is more a question about the serverless-stack tutorial.

I’m trying to piece together an end-to-end solution for working with Cognito User Pools and Facebook login (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html). I’m having a lot of trouble finding good examples online.

The serverless-stack tutorial (https://serverless-stack.com/chapters/facebook-login-with-cognito-using-aws-amplify.html) makes use of Identity Pools.

Questions:

  1. Would the example be the same (using Auth.FederatedLogin(…)) for User Pools?
  2. Are there any examples of using Facebook authentication without Amplify?