URL Scheme for Linkedin
Asked Answered
N

4

9

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

Necker answered 14/3, 2013 at 10:51 Comment(0)
W
8

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

linkedin://profile/[id]
Withindoors answered 28/12, 2015 at 17:36 Comment(1)
It works using the id which you can see when you open a profile from the browser after linkedin.com/in or linkedin.com/profile/view?id= The first one uses the "custom url" and the second the long and weird identifier. With that scheme you can use both of them.Withindoors
R
3

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

Ronrona answered 5/4, 2013 at 19:45 Comment(0)
A
2

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.

Armory answered 27/9, 2017 at 18:31 Comment(0)
F
0

Working on iOS 8.3:

linkedin://profile?id=[id] 

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

Frayne answered 8/6, 2015 at 13:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.