cosname

"fb:post failed to resize in 45s" temporary fix

Mar 19th, 2015
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.22 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <title>Document</title>
  6.   <script>
  7.     window.fbAsyncInit = function() {
  8.       FB.init({
  9.         appId      : '149318671801286',
  10.         xfbml      : true,
  11.         version    : 'v2.1'
  12.       });
  13.     };
  14.   </script>
  15.   <style>
  16.     .fb-post.fb_iframe_widget span {
  17.       overflow: visible !important;
  18.       width: auto !important;
  19.       height: auto !important;
  20.     }
  21.     .fb-post.fb_iframe_widget iframe {
  22.       width: 466px !important;
  23.       height: 1000px !important;
  24.     }
  25.   </style>
  26. </head>
  27. <body>
  28.   <!-- right after the opening <body> tag -->
  29.   <div id="fb-root"></div>
  30.   <script>(function(d, s, id){
  31.        var js, fjs = d.getElementsByTagName(s)[0];
  32.        if (d.getElementById(id)) {return;}
  33.        js = d.createElement(s); js.id = id;
  34.        js.src = "http://connect.facebook.net/en_US/sdk.js";
  35.        fjs.parentNode.insertBefore(js, fjs);
  36.      }(document, 'script', 'facebook-jssdk'));</script>
  37.  
  38.   <!-- Place the code for your plugin wherever you want the plugin to appear on your page. -->
  39.   <div class="fb-post"
  40.    data-href="https://www.facebook.com/hromadsketv/posts/932344410119256"
  41.    data-width="466"></div>
  42.  
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment