Facebook.com is not running in I frame anyone now the reason.
<iframe name="iframe1" src="http://www.facebook.com"></iframe>
Facebook.com doesn't allow for it's main page to be included in iframe
, because they set X-Frame-Options
HTTP header to DENY
.
If you look in your console, you'll see:
Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'DENY'.
If you want to get around this you can:
If you develop only for yourself, you can use browser plugin, for example: https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe
However, it'd be best if you'll just use plugins they've exposed for developers: https://developers.facebook.com/docs/plugins.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With