1. Business Portfolio & Developer Setup
-
-
Developer Registration: Visit
developers.facebook.com, complete identity verification, and link your developer profile to the Business Portfolio.
-
App Registration via Use Cases: In the Developer Dashboard, click Create App, select the modern use-case flow (Create & manage app ads / Authenticate via Facebook Login), link it to your Business Portfolio, and copy the assigned App ID.
2. Unified Dataset Hub & Credential Provisioning
-
Initialize the Dataset: In
eventsmanager.facebook.com, ensure your Business Portfolio is selected, create a unified
Dataset, and navigate to
Settings → Linked Data.
-
Link Mobile Asset: Connect the mobile App ID to the Dataset so all incoming client events route directly to the Dataset container.
-
Basic Configuration & URLs: Under App settings → Basic, supply your live domain, Privacy Policy URL, Terms of Service URL, and Data deletion instructions URL.
-
Client Token & Protocol Scheme: Retrieve the Client Token under App settings → Advanced → Security. The login protocol scheme must strictly follow the fb<APP_ID> syntax.
3. Native Android Configuration & Publishing
-
Define Native Resources: Add keys to android/app/src/main/res/values/strings.xml:
-
Inject Metadata in Manifest: Inside <application> in android/app/src/main/AndroidManifest.xml, configure the SDK parameters and the custom tab redirect:
-
Publish App: Go to the Publish tab in the Developer Dashboard, clear any pending checklist items, and submit the app to switch from Unpublished to Live.
4. Flutter Instrumentation & Real-Time Validation
-
Log and Flush Events: Dispatch events from Dart and force a flush to bypass local batching buffers during verification:
-
Test Event Verification: In Events Manager → Dataset → Test events, select App, run the application on an Android device or emulator (flutter run -d <device_id>), and confirm real-time ingestion in the log viewer. Incoming payloads automatically clear initial Dataset alert badges.
5. Asset Assignment & Advantage+ Campaign Launch
-
Ad Account Setup & Dataset Association: In
business.facebook.com/settings, configure your
Ad Account, attach payment details, and link the Ad Account to the Dataset under
Data Sources → Datasets → Connected Assets.
-
-
Ad Set Configuration: Select Advantage+ App Campaigns (or manual app campaign), designate your registered App ID and linked Dataset, set the optimization goal (App Installs or downstream in-app standard events like Purchase), and define your target markets.
-
Ad Setup & Execution: Attach creative assets, set destination app store links/deep links, and publish to activate real-time attribution and optimization.