[英]Linkedin ios SDK createSessionWithAuth update error
我正在嘗試集成適用於iOS的最新Linkedin SDK。
當我請求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]);
}
];
我遇到了完全相同的問題,我在LinkedIn開發人員網站上進行了檢查,再次安裝了SDK,該版本1.0.3不再可供下載。
刪除框架,下載並使用sdk版本1.0.2,它將正常工作。
干杯。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.