Question:

The page is too long that scrollbar appears. How can I set the canvas size explicitly?

 

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

For IFrame canvas app, the canvas size can be size by the FB.Canvas.setSize method of the JavaScript SDK.

For example,

<body>
  <div id="fb-root"></div>
  <script src="http://connect.facebook.net/en_US/all.js"></script>
  <script>
    window.fbAsyncInit = function() {
     FB.init({appId  : '999935449088509',
              status : true,
              cookie : true,
              xfbml  : true
            });
 
     FB.Canvas.setSize({ width: 760, height: 900 }); 
   };
 </script>

.
.
.

 

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!