Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
Show Preview of Images or Video from Links embedded within a Text on LinkedIn

I am working with the LinkedIn Shares API and I use the below code to share content to LinkedIn. The problem is that if the text contains a video link or image link, LinkedIn doesn't know how to grab the Link from the text and show a Preview of the image or video.

E.g imagine the text says

Hello world and has an embedded YouTube Link Like this and more text here

How can I make LinkedIn pick up the YouTube link from the text and preview it?

Here is my code:

let postUrl = `https://api.linkedin.com/v2/shares`;
let headers = {
    'Authorization': `Bearer ${access_token}`,
    'X-Restli-Protocol-Version': '2.0.0'
};
let requestBody = {
    text: {
        text: `Hello world and has an embedded  **[YouTube Link Like this][1]** and more text here`
    },
    "distribution": {
        "linkedInDistributionTarget": {}
    },
    owner: `urn:li:organization:${organization.id}`
};
let pagePostResponse = await axios.post(postUrl, requestBody, {
    headers: headers
});
//The content gets posted successfully to LinkedIn but the youtube link preview is not showing

Thank you

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda