Getting an error 405 verb not allowed.

johnnypool89
johnnypool89 used Ask the Experts™
on
Hi, I am trying to upload a web application as a Facebook application. I have set the settings to read the application from www.csaigapt2011.info from the application settings, but when i go to the app, the error occurs and the page is not loaded.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
What verb are you trying to use with what kind of page?  You can 'GET' a regular HTML page but you can't 'POST' to it.

Author

Commented:
as far as i know, facebook is trying to post, im a newbie so i dnt know that much, ive tried changing the index.html to aspx as it worked for others, but its still not working
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You will need to dig into the details and maybe the server log to see what is causing the error.  Details are important and just changing the page from 'html' to 'aspx' doesn't change how it functions.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
this is the code i have in the index.php file
<?php

require 'facebook.php';

$facebook = new Facebook(array(
'appId' => '147934648609474';
'secret' => '03e977218638670799ce8d22bcbaabc6';
'cookie' => true;
));

$session = $facebook -> getSession();

echo = "Hello";

?>

Open in new window

Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
That's nice but it doesn't tell where the error is.

Author

Commented:
pls find attached the error in detail error
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Have you installed PHP and it's handler on that web server?

Author

Commented:
i hav just installed PHP manager on iis7, however when i go to activate it it asks me for php-cgi.exe which i do not hav. In short i have this website, which can be found at www.csaigapt2011.info, and i need to put it on facebook as an application. Now to test the application i tried using some sample, code such as the one i showed you before in index.php. However i am getting the verb error.
Fixer of Problems
Most Valuable Expert 2014
Commented:
I don't know what PHP Manager is but I do know that you have to have the PHP handler installed.  FastCGI is recommended for IIS7 and the current versions of PHP.  Did you follow the steps on this page: http://learn.iis.net/page.aspx/770/install-the-microsoft-web-platform-for-php/  ??

Until PHP is properly installed and running, you will continue to get the 'verb error'.

Author

Commented:
i had PHP manager installed on IIS7, however i did not configure it well, thanks for the link, that did the trick.

Author

Commented:
Attitude
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Glad you got it running.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial