尝试在示例中查找
-(void) sessionStateChanged: (FBSession*) session
state: (FBSessionState) state
error: (NSError*) error
{
switch(state)
{
case FBSessionStateOpen:
{
// Logged
break;
}
case FBSessionStateClosed:
{
// Logouted
break;
}
case FBSessionStateFailed:
{
// connect failed or some error
// it seems, this place what you need ?
break;
}
}
}
UPD
或者您可以在此处检查 Safari 错误 (FBRequestConnection.m)
-(void) completeWithResponse: (NSURLResponse*) response
data: (NSData*) data
orError: (NSError*) error
{
//Try check this params at each your case
}