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];
}
,崩潰的註銷功能在Facebook在應用程序委託方法sdk3.1
- (void) closeSession
{
[FBSession.activeSession closeAndClearTokenInformation];
}
所以在closeSession
方法我得到EXC_BAD_ACCESS
。
這個問題非常不明智,看起來你已經付出了很少的努力去做它...... – 2012-12-29 10:24:10
爲什麼我遇到了......? – Kalpesh