server error:405 - HTTP verb used to access this page is not allowed

Florian Shena picture Florian Shena · Jul 27, 2011 · Viewed 154.4k times · Source

I have a php Facebook application which I have uploaded in a Microsoft server. When I run the application i get this error. Does anybody know the cause of this ?

405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Answer

Rabih harb picture Rabih harb · Oct 13, 2011

Even if you are using IIS or apache, in my guess you are using static html page as a landing page, and by default the web server doesn't allow POST or GET verb on .html page, facebook calls your page via POST/GET verb

the solution would be to rename the page into .php or .aspx and you should be good to go :)