Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 733
Florian Shena Avatar asked Jul 27 '11 07:07

Florian Shena


People also ask

What is an HTTP verb error?

The error message "HTTP Error 405.0 - Method Not Allowed" means that the request was sent to a page that can't handle a POST request. The most likely issue is that the URL you specified for your dbFront install is not correct. It is important that the URL ends with a "/" or "/default.aspx"

How do I fix the 405 method not allowed error in IIS?

If you don't need to use WebDAV, then the easiest and the best way to fix "405 method not allowed" issue is to remove WebDAV from your system. You can easily get this done in "Turn Windows Features On or Off" simply un-ticking the checkbox.


2 Answers

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 :)

like image 106
Rabih harb Avatar answered Sep 18 '22 04:09

Rabih harb


In the Facebook app control panel make sure you have a forward slash on the end of any specified URL if you are only specifying a folder name

i.e.

Page Tab URL: http://mypagetabserver.com/custom_tab/

like image 32
Kevin Cooper Avatar answered Sep 20 '22 04:09

Kevin Cooper