Search code examples
linkedin-api

LinkedIn share preview not working


For my site, preview images do not appear in linkedin status updates.

It seems I have all the requisite OGP tags:

<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
    ...             
<meta property="og:image" content="https://allroadstraveled.com/wp-content/uploads/2016/02/Kozanji_Kyoto.jpg" />
<meta property="og:image:width" content="1080" />
<meta property="og:image:height" content="592" />

(source of https://allroadstraveled.com/zen-temples-of-kyoto/ )

enter image description here

Why are preview images not appearing?


Solution

  • I had a similar problem: everything worked except for LinkedIn on our https-only website. The problem was that ServerName and ServerAlias were not set in the Apache config file (default-ssl in our case).

    You can use the Twitter card validator to check your SSL-settings (https://cards-dev.twitter.com/validator), if this throws an error adjust your Apache config.

    You find additional information here: SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0

    and here: Making your site shareable on LinkedIn