tonyli508 / LinkedinSwift

Linkedin IOS SDK for Swift from IOS 7
MIT License
74 stars 43 forks source link
linkedin linkedin-sdk oauth2

LinkedinSwift

CocoaPods Build Status codebeat badge Gitter

LinkedinSwift is a project for managing native LinkedIn SDK using CocoaPods

Linkedin Oauth Helper, depend on Linkedin Native App installed or not, using Linkdin IOS SDK or UIWebView to login

Latest version is based on LinkedIn SDK 1.0.7 and IOSLinkedinAPI for webview auth.

⚠️ Linkedin has turned down the support of The Mobile SDK link, hopefully they will solve this soon. For now only use web login.

let linkedinHelper = LinkedinSwiftHelper(configuration: 
    LinkedinSwiftConfiguration(
        clientId: "77tn2ar7gq6lgv", 
        clientSecret: "iqkDGYpWdhf7WKzA", 
        state: "DLKDJF45DIWOERCM", 
        permissions: ["r_liteprofile", "r_emailaddress"]
    ),
    nativeAppChecker: WebLoginOnly()
)

Try the example app as well.

Be aware of their upcoming changes for permissions as well, starting from 1st March, 2019, they may only supprot r_liteprofile permission instead of r_basicprofile. link

How to use

pod 'LinkedinSwift', '~> 1.8.1'

Check out Example project.

}) { [unowned self] (error) -> Void in

//Encounter error

}

- Logout:
```swift
linkedinHelper.logout()

Example project screenshots:

Demo photo

Known issues

~It seems Linkedin 1.0.7 messed up with Bitcode support. again. You need to turn off Bitcode to make it work.~ seems can turn on Bitcode now.