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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:05:12+00:00 2026-06-07T14:05:12+00:00

Im trying to resize the canvas app iFrame size – it lets me adjust

  • 0

Im trying to resize the canvas app iFrame size – it lets me adjust the height but not the width, the width is always set to 520px and height to 900px;

The documentation shows how you can set the canvas app settings through the developer apps but the settings are not there for me, how weird. I’ve tried autoResize, autoGrow and other options, running out of ideas here now.

This is the code that i am using;

<div id="fb-root"></div>
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
    appId: 'my_app_id',
    status: true, // check login status
    cookie: true, // enable cookies to allow the server to access the session
    xfbml: true // parse XFBML
});    
</script>
<script type="text/javascript">
window.fbAsyncInit = function () {
    FB.Canvas.setAutoResize(true);
}
</script>
  • 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-07T14:05:14+00:00Added an answer on June 7, 2026 at 2:05 pm

    Try the following function by providing explicit width and height:

    FB.Canvas.setSize({ width: 640, height: 480 });
    

    To see more – https://developers.facebook.com/docs/reference/javascript/FB.Canvas.setSize/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to resize a HTML5 canvas element using jQuery. (NOTICE: Not the objects
I'm trying to figure out how to resize a child canvas but I can't
I am trying to resize an image with the maximum of 1000px width but
I am trying to resize my drawing area to a smaller size but whenever
I'm trying to set a .PNG file as background on Canvas in my app.
i trying to resize the height of a flash object to the size of
I'm trying to resize an image at runtime in yii, but does not work.
I am trying to resize the image using javascript, but I am getting errors
I'm trying to create a simple app that draws rectangles within the Canvas tag.
My problem is the next: I am trying resize a image size depending a

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.