3

当我使用以下代码打开 FBWebDialog 时,一旦打开 FBWebDialog,单击用户名文本字段,如果您旋转 iPad 设备,现在会显示键盘,FBWebDialog 不会自动旋转到横向。

[FBSession setActiveSession: [[FBSession alloc] initWithPermissions:permission] ];
[[FBSession activeSession] openWithBehavior:FBSessionLoginBehaviorForcingWebView completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
    switch (status) {
        case FBSessionStateOpen:
            [self getMyData];
            break;
        case FBSessionStateClosedLoginFailed: {
            NSString *errorCode = [[error userInfo] objectForKey:FBErrorLoginFailedOriginalErrorCode];
            NSString *errorReason = [[error userInfo] objectForKey:FBErrorLoginFailedReason];
            BOOL userDidCancel = !errorCode && (!errorReason || [errorReason isEqualToString:FBErrorLoginFailedReasonInlineCancelledValue]);
            if(error.code == 2 && ![errorReason isEqualToString:@"com.facebook.sdk:UserLoginCancelled"]) {
                UIAlertView *errorMessage = [[UIAlertView alloc] initWithTitle:kFBAlertTitle message:kFBAuthenticationErrorMessage delegate:nil cancelButtonTitle:kOk otherButtonTitles:nil];
                [errorMessage performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:YES];
                errorMessage = nil;
            }

        }
        break;
    // presently extension, log-out and invalidation are being implemented in the Facebook class
    default:
        break; // so we do nothing in response to those state transitions
    }
}];

以下是重现此问题的步骤:

  1. 打开在 iPad 应用程序中打开的 FBWebialog
  2. 单击用户名文本字段并显示键盘
  3. 现在,如果您旋转 iPad 设备,FBWebDialog 不会自动旋转到横向。

请帮我解决这个问题....

4

1 回答 1

0

它来自 facebook 方面的错误,这是我发布给 facbook 支持团队的查询。即使没有得到Facebook的任何回应,它的嘲笑......

https://developers.facebook.com/bugs/355080977928726?browse=external_tasks_search_results_52820409e9c884976463112

于 2013-11-12T10:35:03.587 回答