AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

UserPoolIdentityProviderFacebook

Represents an identity provider that integrates with Facebook Login.

Import

import { UserPoolIdentityProviderFacebook } from 'aws-cdk-lib/aws-cognito';

Or use the module namespace:

import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.UserPoolIdentityProviderFacebook

Properties

Configuration passed to the constructor as UserPoolIdentityProviderFacebookProps.

clientIdRequired
string

The client id recognized by Facebook APIs.

clientSecretRequired
string

The client secret to be accompanied with clientId for Facebook to authenticate the client.

apiVersionOptional
string

The Facebook API version to use.

Default: - to the oldest version supported by Facebook

scopesOptional
string[]

The list of Facebook permissions to obtain for getting access to the Facebook profile.

Default: [ public_profile ]

2 properties inherited from UserPoolIdentityProviderProps
userPoolRequiredinherited from UserPoolIdentityProviderProps
IUserPool

The user pool to which this construct provides identities.

attributeMappingOptionalinherited from UserPoolIdentityProviderProps
AttributeMapping

Mapping attributes from the identity provider to standard and custom attributes of the user pool.

Default: - no attribute mapping

Get the Amazon Cognito Cheat Sheet

Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.

Download Free Infographic