与og在LinkedIn上分享 [英] Share on LinkedIn with og
问题描述
我有Rails应用程序.我为Facebook,google +和Vkontakte添加了og标签.而且我还需要增加与LinkedIn共享的可能性.但是我不明白为什么LinkedIn不选择我的OG标签.
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.
我的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')}"
facebook,g +,vk完美运行,但是链接后无法从我的网站获取任何信息.
And facebook, g+, vk works perfectly, but linked in don't fetch any information from my website.
有什么建议吗?
推荐答案
我遇到了同样的问题:除了https专用的网站上的LinkedIn之外,其他所有方法都有效.问题是未在Apache配置文件中设置ServerName和ServerAlias(在本例中为default-ssl).
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).
您可以使用Twitter卡验证程序来检查您的SSL设置( https://cards-dev .twitter.com/validator ),如果这会引发错误,请调整您的Apache配置.
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
这篇关于与og在LinkedIn上分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!