链接中的共享按钮返回错误的URL

时间:2019-05-08 17:25:41

标签: javascript share share-button

我有流动的LinkedIn共享按钮:

<a href="#" onclick="window.open( 'http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent('{{ .Permalink }}')+'&text='+encodeURIComponent('{{.Params.pageDescription}}'), 'sharer', 'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 )); return false;" class="rounded-circle"><i class="fab fa-linkedin-in"></i></a>

我没有分享页面,而是收到“不是你,是我们”消息。

URL为https://www.linkedin.com/shareArticle/?mini=true&url=&text=Description here

通过比较,此Facebook共享者可以工作

<a href="#" onclick="window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('{{ .Permalink }}') +'&title=' + encodeURIComponent('{{.Params.pageH1small}} - {{.Params.pageH1}}') + encodeURIComponent('{{.Params.pageDescription}}'), 'facebook-share-dialog', 'width=626,height=436,top='+((screen.height - 436) / 2)+',left='+((screen.width - 626)/2 )); return false;" class="rounded-circle"><i class="fab fa-facebook-f"></i></a>

LinkedIn共享按钮缺少什么?

2 个答案:

答案 0 :(得分:0)

错误消息说明:不是你,是我们。 当服务器端出现问题时,此错误非常普遍。

这表示没有错误引起您的错误。发生此错误是由于来自LinkedIn服务器端的一些技术问题。

因此,从技术上讲,您别无所求,直到等到LinkedIn端解决此问题为止。

答案 1 :(得分:0)