Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7757221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:01:58+00:00 2026-06-01T13:01:58+00:00

I am developing an app on facebook. Since yesterday the resizing worked fine with

  • 0

I am developing an app on facebook.
Since yesterday the resizing worked fine with the following snippets:
CSS:

body, html { overflow:hidden; width:810px;margin:0; padding:0; border:0; }

Right before the closing body tag:

<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" charset="utf-8">
FB.Canvas.setAutoGrow(true,100);
</script>

On Facebook I chose fixed for height and width, but that should not matter due to the autoGrow.

Since today it is just cut off, I tried the fluid settings but it did not change anything. I can remove the css rules for body and html, but then scrollbars are added.

So in short:
The resizing does not work anymore at all.

Important to know (maybe) the app resizes dynamically (via JS) without a page reload.

The code did not change at all, so I am worried Facebook might have changed something?

Besides I also tried this js snippet without any effect (but it does the same anyway):

<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function () {
window.setTimeout(function () {
    FB.Canvas.setAutoGrow()
}, 250)
};
(function () {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e)
}());
</script>

UPDATE:

The question was answered correctly, but one more thing to notice:
Apply overflow:hidden just to the body, it worked after I removed html from the rule – worked with the old canvas, at least I used it before.

Also putting the code in the header did not change anything as well and is not the same as putting it at the beginning in the body area.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:02:00+00:00Added an answer on June 1, 2026 at 1:02 pm

    Try this

    <div id="fb-root"></div>
        <script src="https://connect.facebook.net/en_US/all.js"></script>
        <script>
          window.fbAsyncInit = function() {
            FB.init({
              appId : 'YOUR APP ID', //Your facebook APP here
              cookie : true, // enable cookies to allow the server to access the session
            });
          }
    
          window.onload = function() {
            FB.Canvas.setAutoGrow(91);
          }
        </script> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a facebook app which has the following structure: Browser window (facebook.com/page/xxxx) --
I am developing simple facebook canvas app. I was following this page in documentation:
I'm developing a facebook app right now all by my lonesome. I'm attempting to
I've been developing a Facebook app using Google App Engine in Python and the
I'm developing an iPhone app which uses Facebook sharing. I cannot create the Facebook
I'm developing an app (Flash/AS3) that connects to Facebook. After the user logs in
Situation: I am developing a facebook canvas app. Facebook is sending my sever a
I'm developing a Facebook Page Tab app where a user will be drawing on
For an app I'm developing for Facebook, when the user first logs in, I'd
I'm developing an intranet-based web app that integrates with Facebook via the Graph API.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.