my application works fine without iframe, returns 405 error at facebook! why is it so?
3 Answers
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
-
-
1Very 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 KFeb 29, 2012 at 2: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.– lasaroAug 13, 2012 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 Feb 11, 2013 at 7:12
Disable POST for Canvas
on the application settings, under the "advanced" tab.
-
1Ideally, you should prepare for it. Check out FB's dev blog and the roadmap. Jan 24, 2011 at 23:27
-
is this still possible? i don't see that setting in the application settings.– split19Nov 15, 2012 at 17:33
-
@split19 POST for canvas is now default for all apps. This referred to a temporary reversal available at the time. Nov 19, 2012 at 8:48
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.