Error authenticating using LinkedIn iOS SDK

眉间皱痕 提交于 2019-12-12 21:54:17

问题


I have downloaded LinkedIn iOS SDK which includes two sample applications. However, when I try both applications I get this error:

ERROR = Error Domain=LISDKAuthError Code=5 "The operation couldn’t be completed. (LISDKAuthError error 5.)" UserInfo=0x174260840 {errorDescription=Unexpected Server Error, originalDomain=LISDKServerError, errorInfo=SERVER_ERROR}

Also, I have tried creating my own LinkedIn app by following this link here and the same error occurs when initialize a connection to LinkedIn using this method:

createSessionWithAuth:scope:state:showGoToAppStoreDialog: successBlock:errorBlock

Any idea what went wrong?


回答1:


I had the same error and works for me after add the Bundle Identifier in the iOS.

Eg. com.example.App




回答2:


This error will be coming if you haven't set your "Bundle identifier" and "URL scheme" properties in mobile settings of your app properly in your LinkedIn developer account.

Here's a link! which might help you sorting out your problem.




回答3:


Open Your linked app from linkedIn developer account. Then Navigate to Mobile Menu: Please check screenshot below

Please check if you have Application ID : <01234> whatever, used in your IOS app info.plist.

Also confirm if you have added right IOS Bundle Identifiers: by tapping on ADD Button, and if needed IOS URL Scheme Suffixes in LinkedIn App.

Tap on Update Button and then try Login with linkedin on app, it will work.

-Happy Coding.



来源:https://stackoverflow.com/questions/31376168/error-authenticating-using-linkedin-ios-sdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!