简体   繁体   中英

Share dialog Facebook on Android

I follow this tutorial: https://developers.facebook.com/docs/android/share-dialog/

but I don't know where is the variable "callback" on this code:

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

uiHelper = new UiLifecycleHelper(this, callback);
uiHelper.onCreate(savedInstanceState);

I don't know what it is. It isn't declared anywhere in the tutorial.
I need help, please!

The second parameter to UiLifecycleHelper is of type Session.StatusCallback , which is defined in the first part of the tutorial . It's under Step 2: Set Up authentication change triggers I believe.

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