Advertisement
Guest User

Untitled

a guest
Oct 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. //Paste after body
  2. <div id="fb-root"></div>
  3. <script>
  4. window.fbAsyncInit = function() {
  5. FB.init({ appId: "1775660145900508", status: true, xfbml: true });
  6. };
  7. (function() {
  8. var e = document.createElement("script");
  9. e.async = true;
  10. e.src = document.location.protocol + "//connect.facebook.net/en_US/all.js";
  11. document.getElementById("fb-root").appendChild(e);
  12. })();
  13. </script>
  14.  
  15. $('.blog_social .fb').click(function(e) {
  16. e.preventDefault();
  17. fb_url = 'url';
  18. fb_title = 'title';
  19. FB.ui(
  20. {
  21. method: 'feed',
  22. name: fb_title,
  23. link: fb_url,
  24. display: 'popup'
  25. });
  26. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement