Open Source Infrastructure

Facebook Analytics Plugin for Flutter

Flutter plugin for Facebook App Events, Meta's app measurement and ad attribution SDK. Published in 2019 and maintained through every Facebook SDK major since. Over 400 open source projects depend on it today.

Apache 2.0, free, no paid tier. Oddbit is a software studio: this is what we do for a living. work with us

await
facebookAppEvents.logEvent(
  name: 'fb_mobile_purchase',
  parameters: {
    '_currency': 'USD',
    '_value': 99.99,
  },
);

The numbers

Measured, not asserted. Downloads and the pub.dev score come from pub.dev, refreshed hourly.

171kDownloads, last 30 days
7Years Active maintenance
160/160pub.dev score

Small surface

The plugin mirrors the App Events surface of the native SDKs one to one. If a method exists on AppEvents or AppEventsLogger, it exists here under the same name.

2 open issues

There are 2 issues on the tracker. Bugs in the plugin get fixed free, without conditions.

Automatic event collection

Native support for automatic event collection on both platforms, with the SDK's own toggles exposed rather than wrapped.

We read Meta's changelogs

Facebook SDK v18 shipped defaulting to a Graph API version Meta had already removed. We override it at initialization, so your calls go to a version we keep current instead of wherever Meta reroutes them. You are not the one who finds out from a deprecation email.

What you get

You need a plugin that still works after Meta changes something. That is the whole job.

“Meta ships an SDK pointing at a Graph API version they removed, and it stays that way for months. Someone has to notice. That is most of what maintaining this is.”

Dennis Alund

Dennis Alund

CEO & Founder, Oddbit

Free, and how we earn

The plugin is free. The work around it is not.

Apache 2.0, free for any use including commercial. No paid tier, no API key, no feature held back for customers. We use this plugin ourselves, which is the simplest reason to trust that it keeps working.

Always free

  • The plugin itself, under Apache 2.0, for any use
  • Bug fixes when the plugin is at fault, without conditions and whether or not you are a customer
  • The Flutter guides, with Meta's own documentation linked alongside them
  • Compatibility alerts when Meta ships something that breaks working apps

What we charge for

  • Meta attribution audits, when campaign spend and reported installs disagree
  • Commercial support: response-time commitments and compatibility patches after a Facebook SDK major
  • Flutter, Firebase and Google Cloud work, which is what Oddbit does the rest of the time

We are a senior-led studio in Bali. Maintaining this in the open is how most people find us, and we would rather say that plainly than pretend it is charity. If the plugin saved you time and you have a problem worth paying to solve, get in touch. If not, use it anyway.

What maintenance actually means

Meta's SDK still defaults to a Graph API version Meta removed

Facebook SDK 18.x defaults to a Graph API version Meta has already removed. Meta routes those calls to the oldest next version that is still usable, so the app keeps working while quietly using a version nobody chose, and the account owner starts receiving deprecation notices with a removal deadline. We override the version at plugin initialization instead. Meta has not corrected the default.

SDK defaults against Meta's own removal dates
PlatformSDK defaultRemoved by Meta
iOS SDK v18.xv17.012 September 2025
Android SDK v18.xv16.014 May 2025

This is the kind of thing a maintained dependency is for. When Meta ships an SDK with a corrected default, our override becomes a no-op.

400+Open source projects depend on it
2Open issues
90+Countries reading the plugin's README each month
Documentation

Guides, alerts, and help when the numbers are wrong

Flutter guides

Meta's documentation is platform generic and never mentions Flutter. These pages answer the Flutter-specific version of each question, and link to Meta for the canonical specification.

Read the guides

Compatibility alerts

We email you when Meta ships a Facebook SDK or Graph API change that breaks working Flutter apps, with the fix. A few times a year, only when something real happened.

See what you would get

Meta attribution audit

For companies spending on Meta install campaigns whose numbers do not add up. Fixed fee, starting with a one hour diagnostic call.

See the audit

Commercial support

Response-time commitments, compatibility patches after a Facebook SDK major, and backports to the last two majors. Priced annually, for teams that need the commitment in writing. Email hello@oddbit.id and we will send the terms.

Need this working in production?

Plugin defects are free to report and free to fix. If your Meta numbers are wrong and money is moving, that is the work we sell. Either way, start by telling us what you are seeing.

Google Cloud Partner

Tell Us About Your Project