簡體   English   中英

鏈接入共享按鈕返回錯誤的URL

[英]Linked In share button returns wrong URL

我有流動的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共享按鈕中缺少什么?

錯誤消息說: 不是你,是我們。 當服務器端出現問題時,此錯誤非常常見。

這意味着沒有錯誤引起您的錯誤。 發生此錯誤是由於來自LinkedIn服務器端的一些技術問題。

因此,從技術上講,您只需要等到LinkedIn端解決此問題即可。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM