Loading Iframe Facebook (Load denied by X-Frame-Options)

筅森魡賤 提交于 2019-11-26 20:49:13

问题


My team is in charge of some difficulties with an app on Facebook. We believe this occurred some error in loading the iframe. We discovered this error through Firebug:

Load denied by X-Frame-Options: https://www.facebook.com/dialog/oauth?client_id=140656472747871&redirect_uri=https%3A%2F%2Fnuvemapps.com.br%2Fci%2Fncupons%2Fhome%2F%3Ffb_source%3Dsearch%26ref%3Dts%26fref%3Dts&state=32e667a3645c047d751d20811d49ef6b&req_perms=email%2C+publish_steram%2C+manage_pages does not permit framing.

This happens mainly with people who have not allowed the app, so we do not know specifically where this problem is starting. We still have three possible causes left:

  • Server Configuration
  • Problem with our coding
  • Or in our setup facebook app dev

Can anyone help in identifying this error?

Here is the link to the app: https://apps.facebook.com/cupomigo


回答1:


I got the same issue, and it got fixed, when i used target="_top" for the link , and it is now working perfectly.

Thank you




回答2:


This has been reported here : http://developers.facebook.com/bugs/531093333589159?browse=search_51217726097663989102940

I believe there is not much we can do but wait for a fix. Have the same issue with the "FB Share" plugin.




回答3:


Use this line given below instead of header() function.

echo "<script>window.top.location = 'https://apps.facebook.com/yourappnamespace/';</script>";


来源:https://stackoverflow.com/questions/14915152/loading-iframe-facebook-load-denied-by-x-frame-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!