Loading Iframe Facebook (Load denied by X-Frame-Op

2019-01-14 21:04发布

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

3条回答
够拽才男人
2楼-- · 2019-01-14 21:16

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楼-- · 2019-01-14 21:25

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

echo "<script>window.top.location = 'https://apps.facebook.com/yourappnamespace/';</script>";
查看更多
迷人小祖宗
4楼-- · 2019-01-14 21:28

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

查看更多
登录 后发表回答