2010-05-13 139 views
2

有沒有在iPad或iPhone應用程序中使用Facebook連接。Facebook的連接

這個想法是登錄到這個應用程序,然後能夠看到我的哪個Facebook用戶也使用該應用程序及其功能。

回答

1

請從下面鏈接的應用程序遵循的Facebook SDK整合教程爲您提供: http://www.raywenderlich.com/77/how-to-post-on-facebook-with-your-iphone-app

然後測試該應用程序。如果您還需要運行爲iPad相同的代碼,如果你想調整爲iPad的Facebook控件,只需按照指示來自: http://forum.developers.facebook.net/viewtopic.php?id=54307

但採取的一些事情護理: 在FBDialog.m 1) 'postDismissCleanup'函數不要評論該行, [self removeObservers]; 否則您的應用程序將開始崩潰。

2)更換這兩種功能

- (void)keyboardWillHide:(NSNotification*)notification { 
    //UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; 
    /*if (UIInterfaceOrientationIsLandscape(orientation)) { 
    _webView.frame = CGRectInset(_webView.frame, 
     kPadding + kBorderWidth, 
     kPadding + kBorderWidth + _titleLabel.frame.size.height); 
    }*/ 

    _showingKeyboard = NO; 
} 

- (void)keyboardWillShow:(NSNotification*)notification { 
    //UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; 
    /*if (UIInterfaceOrientationIsLandscape(orientation)) { 
    _webView.frame = CGRectInset(_webView.frame, 
     -(kPadding + kBorderWidth), 
     -(kPadding + kBorderWidth) - _titleLabel.frame.size.height); 
    }*/ 

    _showingKeyboard = YES; 
}