2011-04-15 100 views
1

我使用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. 

}

現在,當我按下按鈕...

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

可以採取什麼問題?

回答

0

根據你的代碼,登錄成功後,你張貼在你的牆上。所以它可能會變成空白屏幕。嘗試在登錄成功時在控制檯上打印某些內容