FacebookAuthPlatform class abstract
The interface that implementations of flutter_facebook_auth must implement.
Platform implementations should extend this class rather than implement it as flutter_facebook_auth
does not consider newly added methods to be breaking changes. Extending this class
(using extends
) ensures that the subclass will get the default implementation, while
platform implementations that implements
this interface will be broken by newly added
FacebookAuthPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- FacebookAuthPlatform
- Implementers
Constructors
Properties
-
accessToken
→ Future<
AccessToken?> -
if the user is logged return one instance of AccessToken
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isAutoLogAppEventsEnabled
→ Future<
bool> -
ONLY FOR iOS: check if AutoLogAppEvents are enabled
no setter
- isWebSdkInitialized → bool
-
use this to know if the facebook sdk was initializated on Web
on Android and iOS is always true
no setter
-
permissions
→ Future<
FacebookPermissions?> -
get the permissions for the current access token
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.dialogOnly}) → Future<LoginResult> - make a login request using the facebook SDK
-
logOut(
) → Future< void> - Sign Out from Facebook
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
webInitialize(
{required String appId, required bool cookie, required bool xfbml, required String version}) → void - initialiaze the facebook javascript sdk
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FacebookAuthPlatform
-
getter/setter pair