htmlfacebookiframefacebook-iframe

Open Facebook page in iframe or frame?


I want to have two facebook pages open at the same time as part of my html page. So when you go to mypage.html, there will be displayed two facebook pages. Is this possible?

I get something like: enter image description here

with code like:

<frameset cols="25%,75%">

or

<iframe height="*" src="http://www.facebook.com/photo.php?fbid=10150277739848763&set=pu.105012493762&type=1&theater" width="100%">
    <p>Your browser does not support iframes.</p> </iframe>

Solution

  • Facebook prevents you from linking directly to the actual site via IFRAME (or any frame). This is because any site putting Facebook in an IFRAME(or any frame) could use Javascript to access elements of the facebook page, including username and password fields.

    There is no way around this. It is built in to the browsers themselves to send some information along in the request header that says it is being requested to be put in frame.

    Gmail and several other sites do this as well.