我搜索我试图这么多的方法来让我自己的风格的Facebook分享按钮(此按钮可以让你分享当前页面)如何自定义/风格的Facebook分享按钮
https://developers.facebook.com/docs/plugins/share-button/
由于该按钮是一个iframe,我们无法访问它并设计它,我明白这一点。但我不知道一些网站有不同风格的分享按钮?
<!DOCTYPE html>
<html>
<head>
<title>Your Website Title</title>
<!-- You can use Open Graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="http://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="http://www.your-domain.com/path/image.jpg" />
</head>
<body>
<!-- Load Facebook SDK for JavaScript -->
<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";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Your share button code -->
<div class="fb-share-button"
data-href="http://www.your-domain.com/your-page.html"
data-layout="button_count">
</div>
</body>
</html>
你可以分享你的实现? – bhansa
我已更新 – saifaldeen
https://stackoverflow.com/questions/9493988/how-to-trigger-facebook-like-button-from-custom-button – bhansa