FB.setSize or FB.setAutoGrow not working for height of pagetab app

This problem has occurred recently and I don't know why. I haven't changed my code anything so I'm assuming Facebook has something to do with it.

I make apps to fit in pagetabs on Facebook and to resize the height of the iframe I have always used the following method:

<!DOCTYPE HTML>
<html>
<head>
<!-- Lots of code -->
</head>
<body>
<!-- Lots of code -->
<div id="fb-root"></div>
<script type="text/javascript">  
   window.fbAsyncInit = function() {
    FB.init({
     appId: '00000000000000' // A real ID of course
    });
    FB.Canvas.setAutoResize();

   };
     (function(d){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/sv_SE/all.js";
     ref.parentNode.insertBefore(js, ref);
   }(document));
  </script>
</body>
</html>

As you can see I'm using the FB.Canvas.setAutoResize method to resize the iframe. Now, I know that this method is beeing removed but I have tried to use setAutoGrow() and setSize() and pass in a specific height and width but not even that will work. And all my apps I have created that used to work fine using one of these methods all look terrible now when the height of the iframe only is 800 px.

Help is very much appreciated! Best Regards

Answers


TRY THIS

  <div id="fb-root">
</div>
<script type="text/javascript" language="javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" language="javascript">
    FB.init({
        appId: 'APPID',
        status: true, // check login status
        cookie: true, // enable cookies to allow the server to access the session
        xfbml: true// parse XFBML
    });
    window.fbAsyncInit = function () {
        FB.Canvas.setSize();
    }

    FB.Canvas.setAutoGrow(7);
</script>

Need Your Help

Can you access private variables using OGNL?

java reflection ognl private-members

Is there anyway using OGNL to access private variables that aren't exposed as a bean property (ie no get/set method pair)? I wanted to use OGNL as a faster, cleaner method of reflection for use in ...

POST binary data using C++

c++ post http-headers base64 binaryfiles

I have a binary file which I presume cannot be sent( using Wininet , POST method , C++ ) as such without encoding as base64. In that case , the encoded data when received in the server side is not ...