I'm trying to create a LinkedIn share code in my web app, but I want to understand what every part of the code means before implementing it. Take this code for example:
$('.lisharelink').click(function() {
var shareurl = $(this).data('shareurl');
window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + escape(shareurl) + '&title=' + document.title + '&source=whatever&target=new', '_blank', 'width=300,height=200');
return false;
});
What should one put for '&source=
? Where does one find the information to put here?
Source would consist of YOUR Domain or any other domain the article is being shared from. It's a simple get variable.
<a href="http://www.linkedin.com/shareArticle?mini=true&url=[webversion]&source=YOURDOMAINHERE">