TwitterAuthProvider

public class TwitterAuthProvider extends Object

Represents the Twitter authentication provider. Use this class to obtain TwitterAuthCredentials.

Constant Summary

String PROVIDER_ID Unique string identifier for this provider type.

Public Method Summary

static AuthCredential
getCredential(String token, String secret)
Returns a new instance of AuthCredential that wraps a Log in with Twitter token.

Inherited Method Summary

Constants

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "twitter.com"

Public Methods

public static AuthCredential getCredential (String token, String secret)

Returns a new instance of AuthCredential that wraps a Log in with Twitter token. Used when calling signInWithCredential(AuthCredential) or linkWithCredential(AuthCredential).

Parameters
token a valid Log in with Twitter token (TwitterAuthToken.token), obtained from the Twitter Fabric SDK
secret a valid Log in with Twitter secret (TwitterAuthToken.secret), obtained from the Twitter Fabric SDK

Send feedback about...

Need help? Visit our support page.