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

余生颓废 提交于 2019-12-18 13:52:58

问题


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());


来源:https://stackoverflow.com/questions/36857441/when-adding-facebook-sdk-appeventslogger-activateappthis-is-shown-deprecate

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