Share on LinkedIn with og

╄→尐↘猪︶ㄣ 提交于 2019-12-08 06:33:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!