Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda