Azhar
Azhar

Reputation: 119

How can i put my facebook's page in an iframe on any website?

<iframe src="https://www.facebook.com/MYUSERNAME/?ref=hl">   </iframe>

I've been trying this code: but it just don't work out , Kindly suggest me something here .

Upvotes: 0

Views: 36

Answers (1)

msg
msg

Reputation: 1540

You can't because of security issues; Refused to display 'facebook.com/goforazhar/?ref=hl%22%3E'; in a frame because it set 'X-Frame-Options' to 'DENY'.

Facebook denies it pages from being loaded into iFrame. Refer "X-Frame-Options" documentation for more details; https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

Upvotes: 1

Related Questions