Like Button for the Web


SUBMITTED BY: cozmaepure

DATE: May 25, 2016, 8:07 a.m.

FORMAT: Hxml

SIZE: 1.2 kB

HITS: 106418

  1. <html>
  2. <head>
  3. <title>Your Website Title</title>
  4. <!-- You can use open graph tags to customize link previews.
  5. Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
  6. <meta property="og:url" content="http://www.your-domain.com/your-page.html" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:title" content="Your Website Title" />
  9. <meta property="og:description" content="Your description" />
  10. <meta property="og:image" content="http://www.your-domain.com/path/image.jpg" />
  11. </head>
  12. <body>
  13. <!-- Load Facebook SDK for JavaScript -->
  14. <div id="fb-root"></div>
  15. <script>(function(d, s, id) {
  16. var js, fjs = d.getElementsByTagName(s)[0];
  17. if (d.getElementById(id)) return;
  18. js = d.createElement(s); js.id = id;
  19. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";
  20. fjs.parentNode.insertBefore(js, fjs);
  21. }(document, 'script', 'facebook-jssdk'));</script>
  22. <!-- Your like button code -->
  23. <div class="fb-like"
  24. data-href="http://www.your-domain.com/your-page.html"
  25. data-layout="standard"
  26. data-action="like"
  27. data-show-faces="true">
  28. </div>
  29. </body>
  30. </html>

comments powered by Disqus