The size of the share icon by default is very small. I want to replace the icon with a bigger one.
I am using the Share Button API with the following code:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
... and I placed this the code for my plugin wherever I want the share button to appear on my page:
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="icon"></div>
I would like the icon used for such buttons to be larger, but cannot figure out how to do so.
fyi: The share dialog should open on the same page, It shouldn't take the user to another page when someone click on the icon.
The facebook icon on this page is a great example, : http://plnkr.co/
Here's the plunk for current code.