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

Diogo Souza picture Diogo Souza · Feb 16, 2013 · Viewed 62k times · Source

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

Answer

Altaf Hussain picture Altaf Hussain · Jun 23, 2013

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