FacebookAuthProvider

public class FacebookAuthProvider


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

Summary

Constants

static final String
FACEBOOK_SIGN_IN_METHOD = "facebook.com"

Unique string identifier for Facebook sign-in method.

static final String
PROVIDER_ID = "facebook.com"

Unique string identifier for this provider type.

Public methods

static @NonNull AuthCredential

Returns a new instance of AuthCredential 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 @NonNull AuthCredential getCredential(@NonNull String accessToken)

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

Parameters
@NonNull String accessToken

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