Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create direct url to LinkedIn company update

Tags:

api

linkedin

I'm implementing a Compony newsfeed on a website and ran into the following problem. The LinkedIn API doesn't provide a direct URL to a company update. Looking at the LinkedIn site there are direct URL's and they're like this for example: https://www.linkedin.com/company/1441/comments?topic=5849556347070205952&type=U&scope=1441&stype=C&a=5uHW&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_1441

Trying stuff out it seems that the parameters topic, type, scope, stype and a are mandatory for the URL to work.. (goback is the only one that isn't).

Using the LinkedIn API with the Company updates call I'm able to buid the direct url, except for the a parameter. The value is always 4 (for me unexplainable) characters long.

Has anyone ever successfully build a direct URL to a company update or can someone maybe explain the a parameter or how to generate its value?

like image 238
PieterAelse Avatar asked Apr 07 '14 14:04

PieterAelse


People also ask

How do I change the URL of my LinkedIn company page?

Claiming your LinkedIn Company Page URL. Currently, the only way to customize the URL to your LinkedIn Company Page is by contacting LinkedIn using this form. Step One. You have to be logged into your LinkedIn account, and your account needs to have admin rights to the LinkedIn Company Page before you submit your request.

What is a LinkedIn url and why is it important?

This is even more important with recent LinkedIn changes, because your URL is what’s displayed whenever someone goes to your profile on LinkedIn. Another topic we cover during our training sessions is LinkedIn Company Pages and how individual profiles need to be connected properly to a company page.

Can I claim my LinkedIn company page URL?

The short answer is yes. The longer answer is that it’s not nearly as easy to do as claiming your personal profile URL. The reason it matters is simple branding. By default, your LinkedIn Company Page URL looks something like this: How much better does it look when you’ve claimed it and it looks like this?

How do I get a custom public profile url on LinkedIn?

Having a custom public profile URL will help other members and recruiters identify your profile easily and connect with you. Custom public profile URLs are available on a first come, first serve basis. You can only have one custom public profile URL at a time.. Click the Me icon at the top of your LinkedIn homepage. Click View Profile.


1 Answers

Updated to new format

You can link directly to any update (company or user) using the following url:

https://www.linkedin.com/feed/update/urn:li:activity:[topic_id]

You can get [topic_id] by getting the last bit of the updateKey in the api response from Linkedin. When updateKey = UPDATE-c7352-6410848097894756353, your topic_id = 6410848097894756353.

In your example that would become https://www.linkedin.com/feed/update/urn:li:activity:5849556347070205952 which links directly to the specific update. The post is too old to work with the new link format


The url used to be

https://www.linkedin.com/nhome/updates/?topic=[topic_id]

Updated thanks to the comment from @sethpollack

like image 88
Daan Avatar answered Oct 08 '22 08:10

Daan