URL Scheme for Linkedin

2019-03-27 02:05发布

I'm having an ios App. I'm able to open the linked native app from my ios App using the custom url scheme "linkedin://". But how to post a link to the linkedin native app through my ios App. Do we have any particular parameters for that?

What are the supported parameters for linkedin URL scheme?

Thanks, Thiagesh

标签: url linkedin
4条回答
干净又极端
2楼-- · 2019-03-27 02:37

Working on iOS 8.3:

linkedin://profile?id=[id] 

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

查看更多
Bombasti
3楼-- · 2019-03-27 02:40

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

linkedin://profile/[id]
查看更多
Viruses.
4楼-- · 2019-03-27 02:50

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

查看更多
Melony?
5楼-- · 2019-03-27 03:04

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.

查看更多
登录 后发表回答