public static class FacebookClient.AccessToken extends Object
Facebook returns these types when performing access token-related operations - see
FacebookClient.convertSessionKeysToAccessTokens(String, String, String...)
,
FacebookClient.obtainAppAccessToken(String, String)
, and
FacebookClient.obtainExtendedAccessToken(String, String, String)
for details.
Constructor and Description |
---|
AccessToken() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
static FacebookClient.AccessToken |
fromQueryString(String queryString)
Given a query string of the form
access_token=XXX or access_token=XXX&expires=YYY , return an
AccessToken instance. |
String |
getAccessToken()
The access token's value.
|
Date |
getExpires()
The date on which the access token expires.
|
String |
getTokenType()
The token type of this access token provided by Facebook
|
int |
hashCode() |
String |
toString() |
public AccessToken()
public static FacebookClient.AccessToken fromQueryString(String queryString)
access_token=XXX
or access_token=XXX&expires=YYY
, return an
AccessToken
instance.
The queryString
is required to contain an access_token
parameter with a non-null
value.
The expires
value is optional and should be the number of seconds since the epoch. If the expires
value cannot be parsed, the returned AccessToken
will have a null
expires
value.
queryString
- The Facebook query string out of which to parse an AccessToken
instance.AccessToken
instance which corresponds to the given queryString
.IllegalArgumentException
- If no access_token
parameter is present in the query string.public String getAccessToken()
public Date getExpires()
public String getTokenType()
RestFB 1.31.0. Copyright © 2010-2015 Mark Allen. All Rights Reserved.