44

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

AS per this changelog : https://developers.facebook.com/docs/android/change-log-4.x

Its changed to AppEventsLogger.activateApp(Application)

But I am facing trouble while implementing it.

Screenshot:

Termininja
  • 6,620
  • 12
  • 48
  • 49
Ashish Dung Dung
  • 563
  • 1
  • 5
  • 10

1 Answers1

99

Just replace AppEventsLogger.activateApp(this) to

AppEventsLogger.activateApp(getApplication());
Strider
  • 4,452
  • 3
  • 24
  • 35
KRist
  • 1,402
  • 12
  • 10