Linkedin iOS login integration issue using SDK

The application opens normally and gives me a login imput in iPhone 6, but on the iPad 3 the type of login does not work, it just shows a normal link to the start page.

@IBAction func linkedinLogin(sender: AnyObject) { LISDKSessionManager.createSessionWithAuth([LISDK_FULL_PROFILE_PERMISSION], state: nil, showGoToAppStoreDialog: true, successBlock: { (returnState) -> Void in var session = LISDKSessionManager.sharedInstance().session println("πŸ‘€ LinkedIn Login") var url = "https://api.linkedin.com/v1/people/~" if LISDKSessionManager.hasValidSession() { LISDKAPIHelper.sharedInstance().getRequest(url, success: { (response) -> Void in println("response: \(response.description)") }, error: { (error) -> Void in println(error) }) } }) { (error) -> Void in println(error) } } 

Any ideas would be appreciated.

+6
source share
1 answer

Try changing LISDK_FULL_PROFILE_PERMISSION with LISDK_BASIC_PROFILE_PERMISSION

0
source

All Articles