Share button for Linkedin

Asked

Viewed 287 times

3

How can I make a share button for Linkedin? I did facebook, google, twitter and Whatsapp but Linkedin I’m not getting. For example look at the one on facebook:

<script type="text/javascript">
    var win = null;
    function novaJanela(pagina, nome, w, h, scroll) {
        LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
        TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
        settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
        win = window.open(pagina, nome, settings);
    }
</script>

<div class="social-ctn fb">
     <a href="#" onclick="NovaJanela('http://www.facebook.com/sharer/sharer.php?u=http://www.cissamagazine.com.br/blog/xperia-c5-ultra-m5-reis-da-fotografia', '', '550', '470', 'yes');return false">
         <div class="icon"></div>
         <span class="text facebook">Facebook</span>                           
     </a>
</div>

2 answers

1

<div class="social-ctn linkedin-new">
     <a href="#" onclick="novaJanela('http://www.linkedin.com/shareArticle?mini=true&amp;url=http://local.cissamagazine.com.br/mais-vendidos&amp;title=Os 20 Smartphones mais vendidos&amp;summary=Os 20 Smartphones mais vendidos', '', '550', '510', 'yes'); return false">
         <span class="icon"></span>
         <span class="text linkedin">Linkedin</span>
     </a>

0

  • But in that case I would like to do as I did in the example above because using their API I am required to make a request each time I upload the page

Browser other questions tagged

You are not signed in. Login or sign up in order to post.