An Oauth2 use case - Authenticating and posting articles with images via LinkedIn API (v. 202504)

An Oauth2 use case - Authenticating and posting articles with images via LinkedIn API (v. 202504)

In this article we will do a review of all the steps needed for authenticating on Linkedin via its API, which rely on Oauth2 protocol. After authentication, we’ll use the API to post content with images. We’ll assume that the reader already has an active account on LinkedIn.
We’ll go in details will all the requests and responses needed for succeeding, and in each step we’ll provide a sequence diagram to better follow the process.
We’ll also refer to the last version of the LinkedIn API, which il 2025-04.
The content will be as follow:

  • Prerequisites before starting
  • Oauth2 in Action
  • Get the profile URN
  • Finally posting content
Read more