10

my application works fine without iframe, returns 405 error at facebook! why is it so?

James A Mohler
  • 10,562
  • 14
  • 41
  • 65
ehmad11
  • 1,331
  • 2
  • 13
  • 28

3 Answers3

16

For reference I had this same 405 error. This was because my Facebook app was pointing to a .html file for testing.

I renamed to .aspx and my server stopped sending that error back to Facebook

Vaynag
  • 161
  • 3
  • Thank you, this was my issue just now. – Jonathan May 12 '11 at 06:39
  • 1
    Very good answer, to use an extension that's POSTable to by the web server. I'm unable to configure my host's web server so this answer works best for me: to change the page extension over which I do have control. Thanks. My guess is that .PHP and other dynamic page extensions would work too. – John K Feb 29 '12 at 02:10
  • if it still does not work for you, check the default file for aspx pages. in my case it was default.aspx, so simply renaming my index.html to index.aspx did not work. once I added index.aspx as a default, it started working. – lasaro Aug 13 '12 at 17:24
  • This worked for me. Somewhat annoying that this is required though - not sure why Facebook won't accept an index file with a .html extension. Not all Facebook apps require complex server side code – Craig Myles Feb 11 '13 at 07:12
1

Disable POST for Canvas on the application settings, under the "advanced" tab.

Julio Santos
  • 3,659
  • 1
  • 24
  • 47
0

When using nginx server, this can be caused by pointing root of the web to .html file... Change it e.g to .php and it will work.

This is probabl because nginx does not allow POST method on static websites.

Zdenek Hatak
  • 1,025
  • 15
  • 20