FacebookAuthProvider

classFacebookAuthProvider


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

Summary

Constants

constString!
FACEBOOK_SIGN_IN_METHOD = "facebook.com"

Unique string identifier for Facebook sign-in method.

constString!
PROVIDER_ID = "facebook.com"

Unique string identifier for this provider type.

Public functions

java-staticAuthCredential
getCredential(accessToken: String)

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

Constants

FACEBOOK_SIGN_IN_METHOD

const val FACEBOOK_SIGN_IN_METHOD = "facebook.com": String!

Unique string identifier for Facebook sign-in method.

PROVIDER_ID

const val PROVIDER_ID = "facebook.com": String!

Unique string identifier for this provider type.

Public functions

getCredential

java-static fun getCredential(accessToken: String): AuthCredential

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

Parameters
accessToken: String

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.