API Connector - Unable to upload images to LinkedIn

@NigelG has helped me a lot on this one.

DESCRIPTION OF MY PROBLEM:
So basically, when I want to share a post, it works if it just involves text. But for an image share (text with images) we need to follow the method at Share on LinkedIn - LinkedIn | Microsoft Docs

Procedure is

  1. Register your image to be uploaded.
  2. Upload your image to LinkedIn.
  3. Create the image share.

I’ve been facing this issue for a really long time now and sincerely hope someone can help me out.

I’ve got the necessary products for the newly created app on the LinkedIn Developers dashboard.

I get the return value of asset and upload URL from step 1. But I don’t know how to execute step 2 - The upload your image involves a cURL that isn’t possible on Bubble. So I tried converting it to a REST on Bubble itself.

API Connector for LinkedIn on Bubble.io

Now after executing this (as per screenshot above), I check the status of the Asset and am getting CLIENT_ERROR there. I’ve searched everywhere and tried changing the Content-Type as well to multipart/form-data, image/png and application/json but it doesn’t seem to work.

It’ll be great if someone can help me out with this.

1 Like

@prashantabbi.is19 ere you able to solve this issue

Having the same problem, I don’t believe it’s possible, but did you find anything yet?

I’ve hit the same road block. Has anybody figured it out. I could greatly use the assistance and would be happy to make a definitive blog post to help others.

Hi there! Yes, I was able to find the solution to this. Sharing the screenshot of my API setup below.

Step 1: Register an Image

Step 2: Upload the Image

Step 3: Share on LinkedIn

Hope this is helpful for the community :slight_smile:
Please feel free to let me know if there’s something specific I could help with.

3 Likes

@prashantabbi.is19 I am struggling to initialize a post call to Linkedin. I believe the issue might be with the parameter “author”, i’m not sure how to set it up. Can you please have a look at my settings below and tell me what i’m doing wrong? You can see below the error message


Hi! I actually got the URN for the person from the fetch profile API of LinkedIn. Are you using the same one in the author parameter itself?

The issue was my Linkedin Id. I made a GET request to obtain my id, which enabled me to properly setup the author field. After that, I was able to initialize the POST call