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
。