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





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,

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





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