2010-05-13 148 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; 
}