Sharing button for linkedin

3

How can I make a button for sharing to linkedin? I did facebook, google, twitter and whatsapp but I'm not getting it. For example look at this one from 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>
    
asked by anonymous 07.08.2015 / 19:36

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>

    
07.08.2015 / 21:59
0

You should implement their APIs at a glance:

link

Choose the language you want to use.

    
07.08.2015 / 19:43