we made progress : the grayed area is now clickable and automatically generates a title/description
but, it’s still not showing the image
If i create a post manually on Linkedin with the same URL: it works (sanity check)
If i put the URL in the Text, and then select Media Category = Post, we get no image and no clickable grey area : the URL appears in the LinkedIn post as a shortened url (which is normal) and that’s it : no image.
→ You did succeed : can you tell me what parameters did you use to be able to generate the image ?
Strange… I followed @Jon 's example and actually got it to post correctly.
But oddly enough, (on my second post attempt) the LinkedIN node gave 422 “invalid request” error. I believe this is a mandatory “cool down” time after you post once. It still posted the content though…
Here’s the cause:
{"message":"422 - {\"errorDetailType\":\"com.linkedin.common.error.BadRequest\",\"message\":\"com.linkedin.content.common.exception.BadRequestResponseException: Content is a duplicate of urn:li:share:69_56\",\"errorDetails\":{\"inputErrors\":[{\"description\":\"Duplicate post is detected\",\"input\":{},\"code\":\"DUPLICATE_POST\"}]},\"status\":422}","name":"Error","stack":"Error: Request failed with status code 422\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (node:events:539:35)\n at IncomingMessage.emit (node:domain:475:12)\n at endReadableNT (node:internal/streams/readable:1345:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"}
I posted, and there was a delay at LinkedIn.com (clicking refresh in browser, no new post). So I reposted, got the error immediately, checked LinkedIn and noticed there was a new post. Couldn’t confirm if it was the first or the second.
So I posted a third time, with new content but using same app / API key/secret and immediately got the error. Then I noticed the (third post attempt) content had posted anyway.
In the end I posted three times, got two error messages and two posts went live.
Just a FYI, this is broken again. Seeing that the LinkedIn node has not been updated to handle the new LinkedIn API spec for articles with images attached to them, I have moved my LinkedIn workflow back to Zapier.
@Kam just gave it a quick go and it failed for me as well, I will take a look and see if anything else has changed with the API that we might have missed.