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

匿名 (未验证) 提交于 2019-12-03 02:06:01

问题:

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.

:

回答1:

Just replace AppEventsLogger.activateApp(this) to

AppEventsLogger.activateApp(getApplication()); 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!