2013-08-20 3 views
2

iOS SDK 3.7, Xcode 4.6, iOS 시뮬레이터 6.0을 사용 중입니다. 여기 Facebook iOS SDK : presentFeedDialogModallyWithSession 충돌 발생

내 코드입니다 : 실행되면

NSLog (@"opening session"); 
[FBSession openActiveSessionWithPublishPermissions: @[@"publish_actions"] 
            defaultAudience: FBSessionDefaultAudienceFriends 
             allowLoginUI: YES 
           completionHandler: nil]; 
NSLog (@"open active session completed"); 
if ([FBSession activeSession].isOpen) 
{ 
    NSLog (@"initiating feed dialog"); 
    [FBWebDialogs presentFeedDialogModallyWithSession: nil 
              parameters: nil 
               handler: nil]; 
} 

, 그것은 디버그 콘솔에 다음과 같은 출력과 충돌 :

opening session 
open active session completed 
initiating feed dialog 
-[FBDialog initWithURL:params:isViewInvisible:frictionlessSettings:delegate:]: unrecognized selector sent to instance 0xb93c7e0 
나는 몇 가지 변화를 시도

, 그들은 모두 충돌; 위의 변형은 가장 간단합니다.

도움을 주셔서 대단히 감사드립니다.

답변

0

문제는 레거시 코드가 시스템의 다른 곳 (ShareKit 라이브러리의 이전 버전)이 Facebook SDK와 충돌하고 있다는 것이 었습니다. 레거시 코드를 제거한 후 위 질문의 코드가 제대로 작동했습니다.