'How can open LinkedIn Comapny Url in iPhone app programmatically?

I want open LinkedIn company Url from my iPhone app to LinkedIn app by using programmatically. I am use following code but not working please help me ....

string = [NSString stringWithFormat:@"linkedin://company/COMPANY_ID"];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]]; 


Solution 1:[1]

The following works fine with the current linkedIn App as of date of posting.

NSString *string = [NSString stringWithFormat:@"linkedin://company/%@", companyID];
NSURL *url = [NSURL URLWithString:string];
[[UIApplication sharedApplication] openURL:url];

This will open the linkedIn app, prompting for login if not already and show the company page for the given companyID.

Solution 2:[2]

You misuse the Format, I think what you wanted it to do should be done like this:

string = [NSString stringWithFormat:@"linkedin://%@/%@", company, COMPANY_ID];

assuming that company and COMPANY_ID are some strings you declared elsewhere.

Solution 3:[3]

linkedin://you
linkedin://profile/[profile id]
linkedin://group/[group id]

See How can I open Linkedin application from my android app?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nicholas Harlen
Solution 2 johnyu
Solution 3 above-the-line