简体   繁体   中英

White Page in Facebook Canvas App

I developed a Facebook App using PHP. This app have worked fine last year.

Now i have migrated the App to another server. Since then, i faced a lot of problems that i overpass with some workarounds.

But, there's an error that occurs when a user views the app for the first time on apps.facebook.com/my-app using google chrome

Refused to display 'FACEBOOK_URL_HERE' in a frame because it set 'X-Frame-Options' to 'DENY'. about:blank:1

I dont know what causes this error. But if the user navigate directly to the app url on my domain. Its opens. After that, If navigate back to the apps.facebook.com/my-app its open without error.

Modern browsers allow a web server to indicate via the X-Frame-Options header whether pages hosted by that server should be iframeable. You need to figure out where in your application or web server this is turned on and disable it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM