There is a great NuGet Packages available + find code samples here
Super Easy Way to Automate Posting on LinkedIn with .Net - CodeHelper[
^]
Quick explanation
1. You create your LinkedInHelper by giving your access token
2. Execute the ShareImage Method
LinkedInHelper _helper = new() { AccessToken = "AQVjgglPI-......" };
var _id = await _helper.GetAuthorID();
_helper.AuthorType = AuthorTypes.Company;
byte[] _image = File.ReadAllBytes(@"c.\...\LinkedIntestImage.jpeg");
await _helper.ShareImage("Welcome LinkedIn Image Share", _image, VisibilityTypes.Public, "My Image Title", "MyImage Description");