Google is committed to advancing racial equity for Black communities. See how.

FacebookAuthProvider

public class FacebookAuthProvider extends Object

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

Constant Summary

String FACEBOOK_SIGN_IN_METHOD Unique string identifier for Facebook sign-in method.
String PROVIDER_ID Unique string identifier for this provider type.

Public Method Summary

static AuthCredential
getCredential(String accessToken)
Returns a new instance of AuthCredential that wraps a Facebook Login token.

Inherited Method Summary

Constants

public static final String FACEBOOK_SIGN_IN_METHOD

Unique string identifier for Facebook sign-in method.

Constant Value: "facebook.com"

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "facebook.com"

Public Methods

public static AuthCredential getCredential (String accessToken)

Returns a new instance of AuthCredential that wraps a Facebook Login token. Used when calling FirebaseAuth.signInWithCredential(AuthCredential) or FirebaseUser.linkWithCredential(AuthCredential).

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