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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -