LinkedIn not picking up og:image

后端 未结 4 1210
清酒与你
清酒与你 2021-02-15 21:16

For one of my websites I am using Open Graph to enrich posts shared from my website. But LinkedIn is not picking the image specified in og:image. The image is modified for the L

4条回答
  •  无人及你
    2021-02-15 21:48

    This question is a bit old but I ran into the same situation and got it solved so I just post my solution( or my understanding how it work) for others have the same problem.

    (Thank you for @Justin Kominar, his answer in this question helps me.)

    1. Make sure you have prefix="og: http://ogp.me/ns# in your tag, when you have iframe(s), make sure which page is calling the share function.
    2. Make sure you set all four tags in you site and give the correct type to especially when you use dynamic url
    3. In the page you pass to og:url ( it is very important to understand linkedin will go to this page to look for the information not the page you call the share function, most of the time they are the same but sometimes that is not the case), you need to do step 1 and 2, set AND MAKE SURE THE IMAGE LINK IS VALID AND THE IMAGE DOES EXIST

    Hope it will help.

提交回复
热议问题