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 9097015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:00:24+00:00 2026-06-17T00:00:24+00:00

Let’s start from the beginning. The situation: I have an app. When I go

  • 0

Let’s start from the beginning.

The situation:

I have an app. When I go to the app searching by name (smart city project) from the Facebook main search bar, I see the app loaded inside Facebook, and a single scroll bar to navigate the content (https://apps.facebook.com/smartcityproject/). All OK here.

When I go to the page (https://www.facebook.com/smartCanada) and click the app tab, it takes me to the app inside Facebook too, but this Facebook context is diferent (https://www.facebook.com/smartCanada/app_253415468099353). Here we have a main scroll from Facebook, and a inner scroll from the page iframe.

The problem:

I must get only one scroll.

The documentation (and several posts, blogs and forums) says I can use FB.Canvas.setSize or setAutoGrow (https://developers.facebook.com/docs/reference/javascript/FB.Canvas.setSize/), but I get the following javascript error from using those methods:

Uncaught TypeError: Object #<Object> has no method 'setAutoResize'

in file connect.facebook.net/en_US/all.js, line 74

Questions:

Anyone knows what I’m doing wrong? That ‘setAutoResize’ method souldn’t be in Facebook libraries? I must wait some script to load? Is the method actually working or it isn’t? Is there another way to change that iframe height?

Thanks.

  • 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-17T00:00:25+00:00Added an answer on June 17, 2026 at 12:00 am

    The problem is your script stops working when it comes to this block of code:

    <script type="text/javascript">
        var userLanguage = '';
    
        window.fbAsyncInit = function(){
    
            // ...
    
            FB.Canvas.setAutoResize();
    
            // ...
        };
    
        // Load the SDK Asynchronously
        // ...
    </script>
    

    FB.Canvas.setAutoResize(); is deprecated by now, so the JavaScript throws an error. You need to replace this line with FB.Canvas.setAutoGrow();, or remove it.

    Also there’s a second error in your script, when it comes to:

    <script type="text/javascript">
        jQuery(document).ready(function() {
            FB.Canvas.setAutoGrow();
        }
    </script>
    

    Change it to:

    <script type="text/javascript">
        jQuery(document).ready(function() {
            FB.Canvas.setAutoGrow();
        })
        // Closing brace was missing!!
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's have an example like below: package xliiv.sandbox; import android.app.Activity; import android.os.Bundle; import android.util.Log;
Let's say I have pseudocode like this: main() { BOOL b = get_bool_from_environment(); //get
Let's say I have deployed my Rails app on a VPS, and everything works
Let's say I have a main folder in my website named test which contains
Let's say you have a class library project that has any number of supplemental
Let's say I have such MYSQL table for logins: id---name---location---login_date ---------------------------------- 1----mike----usa-----21.08.2012 2----tony----uk------22.08.2012 3----tony----uk------23.08.2012
Let's say I have a javascript array with a bunch of elements (anywhere from
Let's say I have a Scala project with a bunch of case classes under
Let's say I have classes Project , Employee , and ProjectAssignement . I have
Let say I have a grid , <Grid Name=grid1> <Grid.ColumnDefinitions> <ColumnDefinition Name=col1 Width=auto> </ColumnDefinition>

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.