iFrame not staying inside frame

Hello. OK so I did a good search and I haven't seen this particular issue. Here's the problem I am having. I made a web page for my family and I have 4 or 5 pages with iFrames within the site. They all work fine except for the latest one I tried. I am trying to put a Facebook page within an iFrame, but it's not working the way it should. It shows up inside the frame, but you see sort of a grayish overlay of the Facebook page. When you click on the page to interact with it, it goes to the Facebook page but then it leaves the frame, it actually leaves the web page altogether, it goes to the Facebook address. All the other iFrames I made for the other pages stay within the frame I made within my web site.

It seems to be the Facebook page only because when I put any other url inside the iFrame code it works fine. I am wondering if Facebook has some sort of code to always try to launch in their own full page and not be contained inside a frame or something like that. Any help on this matter would be greatly appreciated. Thank you in advance.

Macbook Pro 2.16 Intel Duo, Mac OS X (10.6.3)

Posted on Apr 6, 2010 10:40 AM

Reply
1 reply

Apr 9, 2010 8:59 AM in response to froyo

Hello. Well I did a pretty good search over the internet and as far as I can find out, it is something specific to Facebook. Their pages don't load until you click on them. Anybody can try this on iWeb. Make a blank page, stick an iFrame on it and put any Facebook page on the URL. You will see the Facebook page come up, greyed out, sort of in buffer. But when you click on it, then it will load and it will do so in its own full window. I took care of it in my web page by opening up Facebook on a new window, which will work well enough for my purposes. There's also some stuff to be had with Facebook widgets and such that can load profiles, photo albums, etc. But they all invariably do the same thing. So, unless someone can correct me, you can NOT load a Facebook page inside an iFrame. All other pages I have tried do not have this issue, but Facebook does.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

iFrame not staying inside frame

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.