简体   繁体   中英

Track APP Installs from Facebook

I'm following documentation as states: https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads/#advanced

  • Specifically: Measure App Installs

However, I did the following code:

com.facebook.AppEventsLogger.activateApp( this, APPLICATION_ID_FACEBOOK );

However, in dashboard, it doesn't detect the install: 在此处输入图片说明

Any tips?

LogCat outputs the following:

FacebookException: No attribution id returned from the Facebook application

Ok. Solved.

Basically for whoever faces this:

  1. FACEBOOK APP must be installed in device.
  2. USER must be logged in.

Thats it.

=)

Another great but hidden hint is to enable verbose logging via

FacebookSdk.addLoggingBehavior(APP_EVENTS)

The output is actually very helpful and even contains error analysis and descriptions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM