AccessToken class

Class that contains the facebook access token data

Constructors

AccessToken({required List<String>? declinedPermissions, required List<String>? grantedPermissions, required String userId, required DateTime expires, required DateTime lastRefresh, required String token, required String applicationId, String? graphDomain, required bool isExpired, required DateTime dataAccessExpirationTime})
AccessToken.fromJson(Map<String, dynamic> json)
convert the data provided for the platform channel to one instance of AccessToken
factory

Properties

applicationId String
the facebook application Id
final
dataAccessExpirationTime DateTime
DateTime with the date at which user data access expires
final
declinedPermissions List<String>?
list of string with the rejected permission by the user (on Web is null)
final
expires DateTime
DateTime with the expires date of this token
final
grantedPermissions List<String>?
list of string with the approved permission by the user (on Web is null)
final
graphDomain String?
the graph Domain name returned by facebook
final
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
is true when the token is expired
final
lastRefresh DateTime
DateTime with the last refresh date of this token
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
token provided by facebook to make api calls to the GRAPH API
final
userId String
the facebook user id
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
convert this instance to one Map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited