iphone - iOS :App crash on [[FBSDKLoginManager new] logOut]; -


when logged in fblogin loggedin & on click of logout logout if removed background or rerun project has bloggedin & try logg out app crashes ….same function working without removing background & not working on relaunch function:

[[fbsdkloginmanager new] logout]; 

@abstract logs user out @discussion calls [fbsdkaccesstoken setcurrentaccesstoken:nil] , [fbsdkprofile setcurrentprofile:nil].

- (void)logout 

also tried logout these 2 method [fbsdkaccesstoken setcurrentaccesstoken:nil] , [fbsdkprofile setcurrentprofile:nil].

there difference between 'new' , 'alloc init'. try following:

fbsdkloginmanager *fbmanager = [[fbsdkloginmanager alloc] init]; [fbmanager logout]; 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -