Skip to content

Instantly share code, notes, and snippets.

@sheki
Created March 15, 2016 22:25
Show Gist options
  • Select an option

  • Save sheki/ee7da95431f5b3533322 to your computer and use it in GitHub Desktop.

Select an option

Save sheki/ee7da95431f5b3533322 to your computer and use it in GitHub Desktop.
fb send button no worky
<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 send button code -->
<div class="fb-send"
data-href="http://www.your-domain.com/your-page.html"
data-layout="button_count">
WOOT
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment