Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 : 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:

like image 778
Ashish Dung Dung Avatar asked Apr 26 '16 06:04

Ashish Dung Dung


1 Answers

Just replace AppEventsLogger.activateApp(this) to

AppEventsLogger.activateApp(getApplication()); 
like image 107
KRist Avatar answered Sep 17 '22 21:09

KRist