Skip to content
ClickJack Test

← Refused to connect

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

Test it live →

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.

Check your headers

See whether a site sends X-Frame-Options or CSP frame-ancestors, and what browsers will do with them.