URL Scheme for Linkedin

给你一囗甜甜゛ 提交于 2019-11-30 13:27:09

Linkedin has changed the scheme, now it works in this way:

linkedin://profile/[id]

You can jump to a profile with:

linkedin://#profile/9999

I just tested this on my iPhone 5. Works like a charm.

There's more conversation here, but not much content. http://developer.linkedin.com/forum/link-open-linkedin-profile-browser-ios-linkedin-app

If you get LinkedIn profile via LinkedIn REST API, then you can find publicProfileUrl field in JSON:

{ 
  ...
  "publicProfileUrl": "https://www.linkedin.com/in/eugene-brusov"
  ...
}

Then this line of code:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.linkedin.com/in/eugene-brusov"]];

redirects you to target profile opened in the native LinkedIn app if it's installed or to the profile opened in iOS default browser.

Tested on iOS 10.0.2 and 11.0.1.

Working on iOS 8.3:

linkedin://profile?id=[id] 

Take a look to: http://pureoxygenlabs.com/10-app-url-schemes-for-marketers/

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