登录Facebook与FBConnect iphone后的白色空白屏幕

时间:2011-04-15 14:28:38

标签: iphone ios fbconnect

我正在使用FBConnect API ...我在按下按钮时使用此代码..

- (IBAction)postGradesTapped:(id)sender {
_posting = YES;
// If we're not logged in, log in first...
if (![_session isConnected]) {
    self.loginDialog = nil;
    _loginDialog = [[FBLoginDialog alloc] init];    
    [_loginDialog show];    
}
// If we have a session and a name, post to the wall!
else if (_facebookName != nil) {
    [self postToWall];
}
// Otherwise, we don't have a name yet, just wait for that to come through.

}

现在我按下按钮......

白色空白屏幕出现...... :(

可能是什么问题?

1 个答案:

答案 0 :(得分:0)

根据您的代码,登录成功后,您将在墙上发布。所以可能会出现空白屏幕。尝试在登录成功时在控制台上打印一些内容。