Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
83
rated 0 times [  88] [ 5]  / answers: 1 / hits: 22028  / 11 Years ago, wed, october 2, 2013, 12:00:00

I'm trying to display Facebook page in an simple HTML page which only contains an iframe.



Here's my HTML code:



<html>
<body>
<iframe src=http://www.facebook.com></iframe>
</body>
</html>


I'm always getting this error in Google Chrome's console:




Refused to display 'http://www.facebook.com/' in a frame because it
set 'X-Frame-Options' to 'DENY'.




BTW, I'm having this problem also with these iframes:



<iframe src=https://mail.google.com/mail/mu/mp/any></iframe>
<iframe src=http://m.facebook.com></iframe>
<iframe src=http://m.youtube.com></iframe>
<iframe src=http://m.dropbox.com></iframe>
<iframe src=http://m.yahoo.com></iframe>
<iframe src=http://www.google.com></iframe>
<iframe src=http://mail.google.com></iframe>
<iframe src=http://www.facebook.com></iframe>
<iframe src=http://www.youtube.com></iframe>
<iframe src=http://www.dropbox.com></iframe>
<iframe src=http://www.yahoo.com></iframe>


Meanwhile, this iframe is working well !



<iframe src=http://www.google.com/custom></iframe>


How to solve this ?



EDIT based on comments:
Is there an alternative of using iframe if this is unsolvable ? Something like browser tag in XUL ? I already tried browser tag in Firefox extension and it works well, but I'm now coding a chrome extension, so I cannot depend on XUL anymore ?


More From » html

 Answers
8

For those who are interested, this cannot be done !


[#75280] Tuesday, October 1, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dorothylorrainef

Total Points: 456
Total Questions: 102
Total Answers: 115

Location: El Salvador
Member since Sun, Sep 12, 2021
3 Years ago
;