FacebookAccessToken class
The access token for using Facebook APIs.
Includes the token itself, along with useful metadata about it, such as the associated user id, expiration date and permissions that the token contains.
Constructors
-
FacebookAccessToken.fromMap(Map<
String, dynamic> map) - Constructs a FacebookAccessToken instance from a Map.
Properties
- applicationId → String?
-
Gets the ID of the Facebook Application associated with this access token.
final
- dataAccessExpirationTime ↔ DateTime?
-
Gets the date at which user data access expires.
getter/setter pair
-
declinedPermissions
→ List<
String?> ? -
The list of declined permissions associated with this access token.
final
-
expiredPermissions
→ List<
String?> ? -
Gets the list of permissions that were expired with this access token.
final
- expires → DateTime?
-
The date when this access token expires.
final
- graphDomain → String?
-
Returns the graph domain for this access token.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDataAccessExpired → bool?
-
Shows if the user data access is expired.
final
- isExpired → bool?
-
Shows if the token is expired.
final
- lastRefresh → DateTime?
-
Gets the date at which the token was last refreshed.
Since tokens expire, the Facebook SDK will attempt to renew them periodically.
final
-
permissions
→ List<
String?> ? -
The list of accepted permissions associated with this access token.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
The access token returned by the Facebook login, which can be used to
access Facebook APIs.
final
- userId → String?
-
The id for the user that is associated with this access token.
final
Methods
-
isValid(
) → bool - Is this access token expired or not?
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Transforms this access token object to a Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override