FacebookAuthProvider

public classFacebookAuthProvider


Represents the Facebook Login authentication provider. Use this class to obtain s.

Summary

Constants

static finalString
FACEBOOK_SIGN_IN_METHOD = "facebook.com"

Unique string identifier for Facebook sign-in method.

static finalString
PROVIDER_ID = "facebook.com"

Unique string identifier for this provider type.

Public methods

static @NonNullAuthCredential

Returns a new instance ofAuthCredential that wraps a Facebook Login token.

Constants

FACEBOOK_SIGN_IN_METHOD

public static final String FACEBOOK_SIGN_IN_METHOD = "facebook.com"

Unique string identifier for Facebook sign-in method.

PROVIDER_ID

public static final String PROVIDER_ID = "facebook.com"

Unique string identifier for this provider type.

Public methods

getCredential

public static @NonNullAuthCredential getCredential(@NonNullString accessToken)

Returns a new instance ofAuthCredential that wraps a Facebook Login token. Used when callingsignInWithCredential orlinkWithCredential.

Parameters
@NonNullString accessToken

a valid Facebook Login access token, obtained from the Facebook Login SDK

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.