// Attempt to open the session. If the session is not open, show the user the Facebook login UX [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error) <
// Did something go wrong during login? I.e. did the user cancel?
if (status == FBSessionStateClosedLoginFailed || status == FBSessionStateClosed || status == FBSessionStateCreatedOpening) <
// If so, just send them round the loop again [[FBSession activeSession] closeAndClearTokenInformation]; [FBSession setActiveSession:nil];
[self CreateNewSession]; > else <
> >];
위의 소스대로 구현을 진행하면 facebook 로그인에 성공을 하는데 openActiveSessionWithReadPermissons에서 allowLoginUI를 false로 설정하면 로그인에 실패(아무런 응답도 하지 않습니다)가 합니다. 왜 그러는지... 고수님들의 도움이 필요합니다.
위문서 내용을 확인해보세요~^^