2010-05-13 3 views
2

iPad 또는 iPhone 응용 프로그램 내에서 facebook connect를 사용하고 있습니까?Facebook Connect

아이디어는이 응용 프로그램에 로그인 한 다음 페이스 북 사용자가 앱과 기능을 사용하고 있는지 확인할 수 있습니다.

답변

1

는 아래 링크에서 응용 프로그램 당신을 위해 페이스 북 SDK 통합을위한 자습서를 따르십시오 : http://www.raywenderlich.com/77/how-to-post-on-facebook-with-your-iphone-app

그런 다음 응용 프로그램을 테스트합니다. 당신은 또한 아이 패드에 대한 동일한 코드를 실행해야하는 경우, 당신은, 아이 패드를위한 페이스 북 컨트롤의 크기를 조정 단지의 지시에 따르십시오 : 용) 을 FBDialog.m 1 년 : http://forum.developers.facebook.net/viewtopic.php?id=54307

을하지만 몇 가지를 돌봐 '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; 
}