Home > Not Working > Facebook Iframe Auto Resize Not Working

Facebook Iframe Auto Resize Not Working

Contents

if you're asking this question in 2015, this is the answer. –Josh Burson Nov 4 '15 at 18:30 add a comment| up vote 6 down vote To make the new Facebook The plugin renders at a smaller width (to fit in smaller screens) automatically, if the container is of slimmer than the configured width. Document height grows on resize when setting canvas dimensions dynamically How do you control the size of your Facebook Canvas apps? share|improve this answer answered Sep 15 '11 at 19:45 Floyd Wilburn 1,802275 add a comment| up vote 0 down vote When resizing to the minimum height do not forget to make http://win8s.com/not-working/ford-auto-hubs-not-working.html

Browse other questions tagged css facebook iframe height or ask your own question. Solve using Cauchy Schwarz Inequality Why do most microwaves open from the right to the left? No Dynamic Resizing The Page plugin works with responsive, fluid and static layouts. Isn't AES-NI useless because now the key length need to be longer?

Fb Canvas Setsize

Luckily there was a quick fix. Did I cheat? share|improve this answer answered May 2 '11 at 17:51 LocalPCGuy 2,0561521 Thanks for the contribution, however, you are repeating my answer (except the last sentence, which is worth to Reply Kelly B says: 7/19/2012 at 4:14 pm Perhaps the reason for not having a shrinking function is that someone could have an entire source page filled with relatively or absolutely

  • Has a movie ever referred to a later movie?
  • Important Update: One thing I just noticed with the code, it didn’t work in IE!
  • I want to resize to 220px. –Lanti May 14 '15 at 17:45 the above code is to make it responsive, if you want to explicitly set the width to
  • Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
  • jquery here... }); // do FB stuff FB.init({appId: 'APP_ID', status: true, cookie: true }); FB.Canvas.setAutoGrow(); share|improve this answer edited Jul 12 '13 at 11:10 sakibmoon 1,61321229 answered Mar 14 '13 at
  • How?
  • Join them; it only takes a minute: Sign up Getting Facebook's iframe to resize its height up vote 0 down vote favorite I'm working on this facebook app page.
  • I can't remember for sure, but you may need style="overflow:hidden" in your opening body tag as well.

Thanks! asked 4 years ago viewed 1983 times active 4 years ago Upcoming Events 2016 Community Moderator Election ends in 9 days Related 458Resizing an iframe based on content693How to apply CSS FB.Canvas.setAutoGrow(91); // Paul's favourite number If there is only 1 parameter and it is a number, it is assumed to be the interval.ParametersNameTypeRequiredDescriptiononOrOffbooleanyesWhether to turn the timer on or off. This isn't a bug, it's a feature.

Do you think my CSS id bad ? Join them; it only takes a minute: Sign up Responsive width Facebook Page Plugin up vote 31 down vote favorite 8 Facebook introduced a new Page Plugin to replace the Like The size depends on the size of the screen when the plugin loads. It's a major bug that facebook has not fixed yet.

If the container is greater than 500px, to avoid having an obvious gutter on the right hand side, we simply add a scale transform with some simple math. However, his code will most likely produce an error (at least in Firefox), as both the old and new SDKs are being referenced (and they don't play well with each other). I use FB.Canvas.setAutoGrow(true); to automatically resize the iframe to the content, which works great, but only one way. The danger of doing this is that if the FB.Canvas.setAutoResize(); doesn't work, you could have content that is cut off.

Fb Canvas Setsize Not Working

Resize makes it sound like it could make the iFrame smaller when it never does. share|improve this answer answered Aug 12 '15 at 17:25 Elon Zito 734610 1 I tried this on

with or without using the data-width attribute. Fb Canvas Setsize took me hours before i found this. Facebook Canvas Size My cat sat on my laptop, now the right side of my keyboard types the wrong characters Lab colleague uses cracked software.

How I can adjust this thing on Chrome & IE ? this contact form Just put this right after you include Facebooks all.js: document.__createElement = document.createElement; document.createElement = function(tagName) { return document.__createElement(tagName.toLowerCase()); } share|improve this answer edited May 24 '12 at 16:02 jadarnel27 9,00462347 answered Fb has one: FB.Canvas.setAutoResize(); If you know when you need to resize it use FB.Canvas.setSize() So, if you want to make is smaller when you click a link, stick it in This method was previously called FB.Canvas.setAutoResize.

AstraZeneca Website AstraZeneca the global biopharmaceutical business were looking for a website refresh. © 2016 nooshu.com. Any idea what I'm doing wrong? though. have a peek here Code ladder, Cops more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture

Reply @brunoew says: 12/11/2013 at 4:12 pm Great!!! Thank you so much! FB.Canvas.setAutoGrow(); FB.Canvas.setSize({height:600}); Reply kishorys says: 5/24/2013 at 10:58 am Cool trick.

Logged this bug with Facebook: https://developers.facebook.com/bugs/228704057203827 share|improve this answer edited Jan 4 '12 at 20:35 answered Jan 3 '12 at 22:48 Wes Gamble 362522 add a comment| up vote 1 down

Bochner's formula on surfaces using moving coframes Staying on track when learning theory vs learning to play Help needed! What are some ways that fast, long-distance communications can exist without needing to have electronic radios? Can spacecraft defend against antimatter weapons? Not great.

I can do it explicitly by FB.Canvas.setSize({ width: 760, height: 1480 }); however, it doesn't work without parameters, i.e. .setSize(). If the iFrame needs to be taller than 600px, it will now expand and show the content. Word for a non-mainstream belief accepted as fact by a sub-culture? Check This Out share|improve this answer answered Apr 27 '11 at 20:44 Rufinus 13k54268 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign

The meaning of "Versandhaus" Staying on track when learning theory vs learning to play Hotels on the Las Vegas strip: is there a commitment to gamble? window.fbAsyncInit = function() { FB.init({ appId : '', // App ID channelUrl : '', status : true, // check login status