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
Post a Comment