문제

if i open the following link in iframe, it works fine. http://www.facebook.com/{pageID}?sk=messages_inbox&action=read&tid=%7BmessageID%7D

however, if i open the following in iframe, http://www.facebook.com/{pageID}/posts/{postID} it shows “Display forbidden by X-Frame-Options”.

What would be the workaround to this?

도움이 되었습니까?

해결책

If it's a public facing page, i.e, no login required, you can route the request through a proxy on your server, removing the X-Frame-Options header from the response.

다른 팁

I've just resolved this issue by fixing the Page Tab options.

Not having the Page Tab set right, oddly enough yielded the X-frame error.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top