Advertisement
Guest User

Untitled

a guest
May 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <!-- facebook sharing api implementation -->
  2. <script>
  3. window.fbAsyncInit = function() {
  4. FB.init({
  5. appId: 'your-app-id',
  6. xfbml: true,
  7. version: 'v2.6'
  8. });
  9. };
  10. function shareFacebookLink() {
  11. FB.ui({
  12. method: 'share',
  13. href: 'https://www.vanquis.co.uk',
  14. picture: '../images/logo.png',
  15. title: 'Introducing the Vanquis Card',
  16. description: 'The Vanquis Credit Card has helped me, it could help you too! As a friend of mine you could get £25 credited to your account if you get accepted and use your Vanquis Credit Card. Simply click on the link below to apply.'
  17. });
  18. }
  19. (function(d, s, id) {
  20. var js, fjs = d.getElementsByTagName(s)[0];
  21. if (d.getElementById(id)) {
  22. return;
  23. }
  24. js = d.createElement(s);
  25. js.id = id;
  26. js.src = "//connect.facebook.net/en_US/sdk.js";
  27. fjs.parentNode.insertBefore(js, fjs);
  28. }(document, 'script', 'facebook-jssdk'));
  29. </script>
  30. <a class="button facebook" target="_blank" onclick="shareFacebookLink()" href="https://www.facebook.com/sharer/sharer.php?">
  31. <span>Facebook</span>
  32. </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement