flutter_facebook_appevents 1.0.0 copy "flutter_facebook_appevents: ^1.0.0" to clipboard
flutter_facebook_appevents: ^1.0.0 copied to clipboard

flutter_facebook_appevents integrates Facebook App Events to your Flutter app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_facebook_appevents/flutter_facebook_appevents.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              TextButton(
                  child: const Text("Reset User ID"),
                  onPressed: () => FacebookAppEvents.resetUserId()),
              TextButton(
                  child: const Text("Set User ID"),
                  onPressed: () => FacebookAppEvents.setUserId("user")),
              TextButton(
                  child: const Text("Log Event"),
                  onPressed: () =>
                      FacebookAppEvents.logEvent("test_", {"k": "v"})),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
92
downloads

Publisher

verified publisherzonble.net

Weekly Downloads

flutter_facebook_appevents integrates Facebook App Events to your Flutter app.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_facebook_appevents