Android SDK Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AccessTokenSource>

public enum AccessTokenSource
extends java.lang.Enum<AccessTokenSource>
Indicates where a Facebook access token was obtained from.
Enum Constant Summary
Enum Constant and Description
CHROME_CUSTOM_TAB
Indicates an access token was obtained by the user logging in through the Web-based dialog on a Chrome Custom Tab.
CLIENT_TOKEN
Indicates an access token constructed with a Client Token.
DEVICE_AUTH
Indicates an access token constructed from facebook.com/device
FACEBOOK_APPLICATION_NATIVE
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the native login dialog.
FACEBOOK_APPLICATION_SERVICE
Indicates an access token was obtained by asking the Facebook app for the current token based on permissions the user has already granted to the app.
FACEBOOK_APPLICATION_WEB
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the web login dialog.
NONE
Indicates an access token has not been obtained, or is otherwise invalid.
TEST_USER
Indicates an access token is for a test user rather than an actual Facebook user.
WEB_VIEW
Indicates an access token was obtained by the user logging in through the Web-based dialog.
Method Summary
Modifier and TypeMethod and Description
static AccessTokenSourcevalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static AccessTokenSource[]values()
Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail

NONE

public static final AccessTokenSource NONE
Indicates an access token has not been obtained, or is otherwise invalid.

FACEBOOK_APPLICATION_WEB

public static final AccessTokenSource FACEBOOK_APPLICATION_WEB
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the web login dialog.

FACEBOOK_APPLICATION_NATIVE

public static final AccessTokenSource FACEBOOK_APPLICATION_NATIVE
Indicates an access token was obtained by the user logging in through the Facebook app for Android using the native login dialog.

FACEBOOK_APPLICATION_SERVICE

public static final AccessTokenSource FACEBOOK_APPLICATION_SERVICE
Indicates an access token was obtained by asking the Facebook app for the current token based on permissions the user has already granted to the app. No dialog was shown to the user in this case.

WEB_VIEW

public static final AccessTokenSource WEB_VIEW
Indicates an access token was obtained by the user logging in through the Web-based dialog.

CHROME_CUSTOM_TAB

public static final AccessTokenSource CHROME_CUSTOM_TAB
Indicates an access token was obtained by the user logging in through the Web-based dialog on a Chrome Custom Tab.

TEST_USER

public static final AccessTokenSource TEST_USER
Indicates an access token is for a test user rather than an actual Facebook user.

CLIENT_TOKEN

public static final AccessTokenSource CLIENT_TOKEN
Indicates an access token constructed with a Client Token.

DEVICE_AUTH

public static final AccessTokenSource DEVICE_AUTH
Indicates an access token constructed from facebook.com/device
Method Detail

values

public static AccessTokenSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AccessTokenSource c : AccessTokenSource.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessTokenSource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null