LinkedIn posts are a relatively new beast but they’re getting really easy to use.

One aspect that is particularly useful is the ability to embed a video into your post:

LinkedIn post - Add Video button

This is what LinkedIn say they support:

LinkedIn post - Add Video embed

But when I take the unedited embed code from YouTube…

LinkedIn post - YouTube embed

…and paste it into the LinkedIn post, I get an error and no help!

LinkedIn post - Add Video embed error

 

How to Fix the Embed Code

Take your original YouTube embed code:

<iframe width=”1280″ height=”720″ src=”//www.youtube.com/embed/Vv5Tsa4v4jI?rel=0&amp;showinfo=0″ frameborder=”0″ allowfullscreen></iframe>

Change dimensions from 1280 x 720 to 588 x 330 (for 16:9 aspect ratio)

Delete [&amp;showinfo=0]

Paste the corrected code back to the LinkedIn embed form:

<iframe width=”588″ height=”330″ src=”//www.youtube.com/embed/Vv5Tsa4v4jI?rel=0″ frameborder=”0″ allowfullscreen></iframe>