本文整理了Java中com.facebook.internal.Utility.clearFacebookCookies()
方法的一些代码示例,展示了Utility.clearFacebookCookies()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utility.clearFacebookCookies()
方法的具体详情如下:
包路径:com.facebook.internal.Utility
类名称:Utility
方法名:clearFacebookCookies
暂无
代码示例来源:origin: facebook/facebook-android-sdk
private void setCurrentAccessToken(AccessToken currentAccessToken, boolean saveToCache) {
AccessToken oldAccessToken = this.currentAccessToken;
this.currentAccessToken = currentAccessToken;
tokenRefreshInProgress.set(false);
this.lastAttemptedTokenExtendDate = new Date(0);
if (saveToCache) {
if (currentAccessToken != null) {
accessTokenCache.save(currentAccessToken);
} else {
accessTokenCache.clear();
Utility.clearFacebookCookies(FacebookSdk.getApplicationContext());
}
}
if (!Utility.areObjectsEqual(oldAccessToken, currentAccessToken)) {
sendCurrentAccessTokenChangedBroadcastIntent(oldAccessToken, currentAccessToken);
setTokenExpirationBroadcastAlarm();
}
}
代码示例来源:origin: facebook/facebook-android-sdk
Utility.clearFacebookCookies(loginClient.getActivity());
addLoggingExtra(
ServerProtocol.DIALOG_PARAM_ACCESS_TOKEN,
代码示例来源:origin: fr.avianey/facebook-android-api
/**
* Closes the local in-memory Session object and clears any persisted token
* cache related to the Session.
*/
public final void closeAndClearTokenInformation() {
if (this.tokenCachingStrategy != null) {
this.tokenCachingStrategy.clear();
}
Utility.clearFacebookCookies(staticContext);
Utility.clearCaches(staticContext);
close();
}
代码示例来源:origin: fr.avianey/facebook-android-api
} else {
Utility.clearFacebookCookies(context);
addLoggingExtra(ServerProtocol.DIALOG_PARAM_ACCESS_TOKEN, AppEventsConstants.EVENT_PARAM_VALUE_NO);
内容来源于网络,如有侵权,请联系作者删除!