Ashish Ashish -5 years ago 732
Android Question

When adding Facebook SDK " appeventslogger.activateapp(this)" is shown deprecated

Using Facebook SDK 4.5. Tried using SDK 4.5 to 4.11. Problem still facing.

AS per this changelog :

Its changed to AppEventsLogger.activateApp(Application)

But I am facing trouble while implementing it.


Answer Source

Just replace AppEventsLogger.activateApp(this) to


or better wey is to activate AppeventLogger inside Application Class on onCreate method :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download