I can’t load facebook into an iframe, in a web page like the following one:
<html>
<head>
<!-- some stuffs here -->
</head>
<body>
<!-- some stuffs here -->
<iframe src="http://www.google.com" frameborder="0">
</iframe>
</body>
</html>
I’ve tested it with other websites and it seems to load without problems for instance for wired.com, but not for facebook.com…
Can anyone explain me why?
I’m using Google Chrome and Safari, if needed.
It seems to be as if Google blocks iframe loading of its page.
If you use Firebug or Google Chrome’s developer console, you can see the following error
X-Frame-Options
Here is another related stackoverflow question
Overcoming “Display forbidden by X-Frame-Options”