2015-09-08 31 views
0

我正在嘗試整合iOS的最新Linkedin SDK。Linkedin ios SDK createSessionWithAuth更新錯誤

當我請求createSessionWithAuth我得到一個警報視圖與文本:「你需要更新LinkedIn應用程序,以便與LinkedIn連接」

我複製的代碼直出的示例應用程序。

[LISDKSessionManager createSessionWithAuth:[NSArray arrayWithObjects:LISDK_BASIC_PROFILE_PERMISSION, LISDK_EMAILADDRESS_PERMISSION, nil] 
            state:@"some state" 
        showGoToAppStoreDialog:YES 
           successBlock:^(NSString *returnState) { 

            NSLog(@"%s","success called!"); 
            LISDKSession *session = [[LISDKSessionManager sharedInstance] session]; 
            NSLog(@"value=%@ isvalid=%@",[session value],[session isValid] ? @"YES" : @"NO"); 
            NSMutableString *text = [[NSMutableString alloc] initWithString:[session.accessToken description]]; 
            [text appendString:[NSString stringWithFormat:@",state=\"%@\"",returnState]]; 
            NSLog(@"Response label text %@",text); 

           } 
           errorBlock:^(NSError *error) { 
            NSLog(@"%s %@","error called! ", [error description]); 
           } 
]; 
+0

只要在此確定,您確定您的設備上安裝了LinkedIn iOS應用程序的最新版本? –

+0

絕對確定其最新版本。甚至刪除LinkedIn並重新從澳大利亞商店重新安裝,以確保。 –

+0

Linkedin v8.8.1 –

回答

2

我遇到了完全相同的問題,我查看LinkedIn開發者網站,再次安裝SDK,1.0.3版本不能下載。

刪除框架,下載並使用sdk版本1.0.2,它將工作。

乾杯。

+0

謝謝保羅,做了訣竅 –