Founder & Mobile Growth Strategist
Before doing anything else, you need to register as a developer and create your app:
👉 Create your app on Facebook Developers
Once your platforms are added, open Event Manager inside your Business Manager and connect the app to your ad account:
👉 How to connect app to ad account
Make sure you're an admin of both the App and the Business Manager.
Proper SDK integration ensures Meta can:
Use standard events over custom ones when possible. They perform better in attribution and optimization.
If you're not using an MMP (like Adjust or AppsFlyer), you must implement Meta SDK event tracking directly.
Be sure to include value and currency when tracking revenue events.
java
Copia
implementation 'com.facebook.android:facebook-android-sdk:[latest-version]'
FacebookSdk.sdkInitialize(getApplicationContext());
AppEventsLogger.activateApp(this);
AppEventsLogger logger = AppEventsLogger.newLogger(this);
Bundle params = new Bundle();
params.putDouble(AppEventsConstants.EVENT_PARAM_VALUE_TO_SUM, 19.99);
params.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, "USD");
logger.logEvent(AppEventsConstants.EVENT_NAME_PURCHASED, params);
swift
Copia
pod 'FacebookSDK'
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
let params = [
AppEvents.ParameterName.currency: "USD",
AppEvents.ParameterName.valueToSum: 19.99
]
AppEvents.logEvent(.purchased, parameters: params)
✅ After implementation, wait 24–48 hours to verify events are tracked in Event Manager.
✅ You can run an app install campaign to confirm install events are working.
Even when using an MMP, it’s still a good idea to log events in Meta SDK. Why?
Because Meta will:
java
Copia
AdjustEvent event = new AdjustEvent("abc123");
event.setRevenue(19.99, "USD");
Adjust.trackEvent(event);
java
Copia
Map<String, Object> eventValues = new HashMap<>();
eventValues.put(AFInAppEventParameterName.REVENUE, 19.99);
eventValues.put(AFInAppEventParameterName.CURRENCY, "USD");
AppsFlyerLib.getInstance().logEvent(getApplicationContext(),
AFInAppEventType.PURCHASE, eventValues);
🔍 Important: Keep a test campaign live with a small budget, and after 3 days compare Meta event counts with your internal backend to ensure accuracy.