FacebookAuth class Null safety

this class implements the FacebookAuthPlatform interface and calls to the native APIs on Android, iOS and web.

Properties

accessToken Future<AccessToken?>
if the user is logged return one instance of AccessToken
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isAutoLogAppEventsEnabled Future<bool>
ONLY FOR iOS: check if AutoLogAppEvents are enabled
read-only
isWebSdkInitialized bool
use this to know if the facebook sdk was initializated on Web on Android and iOS is always true
read-only
permissions Future<FacebookPermissions?>
returns one instance of FacebookPermission with the granted and declined permissions
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

autoLogAppEventsEnabled(bool enabled) Future<void>
ONLY FOR iOS: enable or disable AutoLogAppEvents
expressLogin() Future<LoginResult>
Express login logs people in with their Facebook account across devices and platform. If a person logs into your app on Android and then changes devices, express login logs them in with their Facebook account, instead of asking for them to select a login method.
getUserData({String fields = "name,email,picture.width(200)"}) Future<Map<String, dynamic>>
retrive the user information using the GraphAPI
login({List<String> permissions = const ['email', 'public_profile'], LoginBehavior loginBehavior = LoginBehavior.nativeWithFallback}) Future<LoginResult>
make a login request using the facebook SDK
logOut() Future<void>
Sign Out from Facebook
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
webAndDesktopInitialize({required String appId, required bool cookie, required bool xfbml, required String version}) Future<void>
call this method (ONLY FOR WEB) to initialize the facebook javascript sdk

Operators

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

Static Properties

i FacebookAuth
you can use FacebookAuth.instance or FacebookAuth.i
read-only
instance FacebookAuth
return the same instance of FacebookAuth
read / write

Static Methods

getInstance() FacebookAuth
return a new instance of FacebookAuth for testing