I am using facebook sdk 3.1 & FBloginview.So i want to perform logout functionality
from other view controller..
Here is my code,
-(void)logout
{
AppDelegate *appdelegate = [[UIApplication sharedApplication] delegate];
if (FBSession.activeSession.isOpen)
{
[appdelegate closeSession];
}
[appdelegate openSessionWithAllowLoginUI:NO];
}
アプリのデリゲート メソッドで、
- (void) closeSession
{
[FBSession.activeSession closeAndClearTokenInformation];
}
だからcloseSession
私が得ている方法でEXC_BAD_ACCESS
。