Linked In share button returns wrong URL

691 views Asked by At

I have the flowing LinkedIn share button:

<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>

Instead of sharing the page I get the "It's not you, it's us" message.

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

By comparison, this Facebook sharer does work:

<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>

What is missing from the LinkedIn share button?

2

There are 2 answers

0
Towkir On BEST ANSWER

The error message says it: It's not you, It's us. This error is pretty common when there is a problem from the server's end.

It means there is no mistake from your side that is causing this error. The error happened due to some technical issues at server side from linkedIn.

So, technically you have nothing but to wait untill this issue is solved from linkedIn's end.

1
Jon Guiton On