facebook 0.0.5

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • --

This plugin allow you to easily connect user to facebook

How to use it

You can find an example here

0.0.5

  • Dart 2 stable

example/main.dart

import 'dart:async';
import 'package:facebook/facebook.dart';

Future<Null> main() async {
  addFacebookScript();

  await fbAsyncInit();
  init(
    new FbInitOption(
      appId: 'YOUR_APP_ID',
      cookies: true,
      xfbml: true,
      version: 'v2.9',
    ),
  );
  var response = await getLoginStatus();
  if (response.status != LoginStatus.connected) {
    print(response.status);
    response = await login();
  }
  print(response.status);
  print(response.authResponse.accessToken);
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  facebook: ^0.0.5

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:facebook/facebook.dart';
  
Version Uploaded Documentation Archive
0.0.5 Aug 29, 2018 Go to the documentation of facebook 0.0.5 Download facebook 0.0.5 archive
0.0.4 Jun 15, 2018 Go to the documentation of facebook 0.0.4 Download facebook 0.0.4 archive
0.0.3 Jun 15, 2018 Go to the documentation of facebook 0.0.3 Download facebook 0.0.3 archive
0.0.2 Jun 6, 2018 Go to the documentation of facebook 0.0.2 Download facebook 0.0.2 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
--
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
--
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <3.0.0