问题
I have rails app. I added og tags for Facebook, google +, and Vkontakte. And I need to add possibility to share to LinkedIn too. But I don't understand why LinkedIn don't pick my OG tags.
My html:
= tag :meta, property: 'og:url', content: 'https://myapp.com/app'
= tag :meta, property: 'og:title', content: 'MyApp'
= tag :meta, property: 'og:description', content: 'You can always find a my app !'
= tag :meta, property: 'og:image', content: "https://myapp.com#{image_path('backgrounds/desk.jpg')}"
And facebook, g+, vk works perfectly, but linked in don't fetch any information from my website.
Any advise?
回答1:
I had the same 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
来源:https://stackoverflow.com/questions/42720542/share-on-linkedin-with-og