简体   繁体   中英

UiLifecycleHelper class in facebook sdk

I am building facebook app for android following a similar tutorial from facebook. Problem is here Facebook Tutorial they are using UiLifecycleHelper and its is not available in facebook sdk. Is that a bug ? Any help much appreciated.

Image attached 没有课程

Regards

This was newly introduced in the Facebook SDK for Android that we released yesterday. It is possible that you downloaded the beta version of the SDK.

Please take the link that Ali provided above, and then clean and rebuild your projects. There's a full getting-started guide for the new (final version of the) SDK here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/

This class import com.facebook.UiLifecycleHelper; is already there in SDK version 3.0 that why no one is answering this. Downloat the latest SDK from here

If you are using Facebook Android SDK 4.x or upgrading from 3.x to 4.x then make a note that

CallbackManager.onActivityResult replaces Session.onActivityResult and UiLifecycleHelper.onActivityResult. See Facebook Login for Android, Register a Callback.

So you won't find UiLifecycleHelper class there. More details - Upgrading the Android SDK from 3.x to 4.x

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM