问题
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