www.facebook.com refused to connect
Why Facebook will not load in a frame, and what to do. Headers checked 2026-11-30.
Facebook pages cannot be loaded in an iframe. To show a public Page or post on your site, use Meta's social plugins: the Page Plugin and Embedded Posts.
What the site sends
- Framing header
- X-Frame-Options: DENY
- Checked URL
https://www.facebook.com/- Checked on
- 2026-11-30
Why it happens
facebook.com sends X-Frame-Options: DENY on its normal pages. The Page Plugin URL, /plugins/page.php, sent no framing header in our check and loads on any site.
Fix it if you are embedding Facebook
Embed a Page with the Page Plugin
The Page Plugin works for any public Facebook Page that is not limited by country or age. Put the address of the Page in href, encoded as a URL parameter.
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FPAGE_NAME&tabs=timeline&width=340&height=500"
width="340" height="500" style="border:none;overflow:hidden"
allow="encrypted-media; picture-in-picture; web-share"></iframe>Embed a post
On a public post, click the icon in the top-right corner and choose Embed Post. Only public posts from Pages and profiles can be embedded.
If you only see the error
The page you are on tried to show Facebook inside a frame. Open the Facebook link in a new tab instead.
FAQ
The plugin loads but shows nothing. Why?
The Page or post is not public, or it is limited by country or age. Meta says Pages with privacy restrictions cannot be embedded.
Other sites that refuse to connect
- www.youtube.com refused to connect (YouTube)
- docs.google.com refused to connect (Google Docs)
- drive.google.com refused to connect (Google Drive)
- login.microsoftonline.com refused to connect (Microsoft sign-in)
- www.google.com refused to connect (Google Search)
- script.google.com refused to connect (Google Apps Script)
- sites.google.com refused to connect (Google Sites)
- accounts.google.com refused to connect (Google sign-in)
- mail.google.com refused to connect (Gmail)
- analytics.google.com refused to connect (Google Analytics)
- www.linkedin.com refused to connect (LinkedIn)
- www.canva.com refused to connect (Canva)