Advertisement
hooge

Facebook Like/Button Fix

Sep 27th, 2013
1,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*Fri 27-Sep-13 - solution by http://MetadataConsulting.blogspot.ca       */
  2. <script src="//connect.facebook.net/en_US/all.js"></script> /*not &xfbml=1*/
  3. <script>
  4.     FB.init({
  5.           appId  : 'YOUR APP ID',
  6.           status : false, // check login status
  7.           cookie : true, // enable cookies to allow the server to access the session
  8.           xfbml  : true,  // parse XFBML add it here
  9.           oauth : true
  10.       });
  11.      (function(d, s, id) {
  12.      var js, fjs = d.getElementsByTagName(s)[0];
  13.       if (d.getElementById(id)) return;
  14.       js = d.createElement(s); js.id = id; js.async = true;
  15.       js.src = "//connect.facebook.net/en_US/all.js"; /*  NOT "//connect.facebook.net/en_US/all.js#xfbml=1"; */
  16.       fjs.parentNode.insertBefore(js, fjs);
  17.       }(document, 'script', 'facebook-jssdk'));
  18. </script>
  19. email metadataconsult@gmail for rest of solution, want to know level interest in this. Thx, M.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement