How to publish a post to LinkedIn via API - A step-by-step guide

Working guide. Learn how to use the LinkedIn API to publish posts on your profile or company page.

How to get publish a post to LinkedIn via API
How to get publish a post to LinkedIn via API

Welcome to our step-by-step guide on how to publish a post to LinkedIn via API.

LinkedIn is a popular professional networking platform that allows users to connect with others in their industry and share updates about their career and business. One of the ways to share updates on LinkedIn is through publishing posts on your profile or company page. In this article, we will show you how to use the LinkedIn API to publish a post on the platform.

Whether you are a developer looking to automate your LinkedIn posting or just want to learn more about the platform's API, this guide will provide you with all the necessary information.

To keep it simple: to share a post to your LinkedIn profile via API: you only need an access token. Simple enough? That's what I also though. The truth is that the internet is full of outdated, confusing and hard to navigate content. And the API doesn't make it simpler 😔

But.

Don't be intimidated by this. By finishing this series, you'll have a solid understanding of how the LinkedIn OAuth flow works, how to generate your access token, and how to send you text to LinkedIn feed programmatically. Let's get the job done. ✌️

Prerequisites: in addition to having a LinkedIn account, please keep in mind that a good understanding of how the web works (Rest API/Headers/Response..) will make it easy for you. As the examples are in JavaScript/nodejs, being familiar with JavaScript will be very useful.