简体   繁体   中英

how to logout programatically in iOS app using facebook sdk 4.x

How to logout programatically in iOS app using Facebook sdk 4.x

I tried below code but its not working for Facebook , iOS SDK 4.x

[[FBSession activeSession] closeAndClearTokenInformation];

you try this code to logout facebook.

FBSDKLoginManager *logMeOut = [[FBSDKLoginManager alloc] init];
[logMeOut logOut];

or

[FBSDKAccessToken setCurrentAccessToken:nil];
[FBSDKProfile setCurrentProfile:nil];

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