[英]facebook-android-sdk: Force reauthentication using the sdk 3.0.1
Is there a way to trigger a reauthentication dialog using the facebook-android-sdk
3.0.1? 有没有办法使用
facebook-android-sdk
3.0.1触发重新认证对话框? It is possible using the JavaScript SDK (see https://developers.facebook.com/docs/facebook-login/reauthentication/ ), but I haven't found anything for the Android SDK. 可以使用JavaScript SDK(请参阅https://developers.facebook.com/docs/facebook-login/reauthentication/ ),但我还没有为Android SDK找到任何东西。
The dialog should be triggered when the user wants to enter the "Edit my profile" section of the app. 当用户想要进入应用程序的“编辑我的个人资料”部分时,应该触发该对话框。
I used something like this 我用这样的东西
Session session = Session.getActiveSession();
if (session != null){
session.closeAndClearTokenInformation();
session = null;
Log.i(TAG, "cleared session");
Session.openActiveSession(activity, true, sessionCallback);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.