Linkedin ios SDK createSessionWithAuth 更新错误

Linkedin ios SDK createSessionWithAuth update error

我正在尝试为 iOS 集成最新的 Linkedin SDK。

当我请求 createSessionWithAuth 时,我收到一个带有文本的警报视图:"You need to update the LinkedIn App in order to connect with 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]);
                                }
 ];

我遇到了完全相同的问题,我在 LinkedIn 开发者网站上检查再次安装 SDK,但版本 1.0.3 不再可供下载。

去除框架,下载并使用1.0.2版本的sdk即可。

干杯。