ios - Forcefully stop and close Active Session -
i'm using latest fbsdk v4.3 using login version v2.3.
i need stop , close current active session couldn't able find out fbsession class , corresponding methods.
can please me out rid of issue when user taps on facebook provided logout button can stop , close current active session.
i tried below code throwing me error 'unknown type name 'fbsession'.
fbsession *session = [session activesession]; [session closeandcleartokeninformation]; [session close]; [fbsession setactivesession:nil];
please hep me out. in advance.
in v4.x of facebook sdk can use new fbsdkloginmanager
class , call logout
method have same effect.
in background calls [fbsdkaccesstoken setcurrentaccesstoken:nil]
remove access token , resets facebook profile cached in fbsdkprofile
Comments
Post a Comment