English 中文(简体)
Silex/ Symfony 应用程序有效, 但不在Facebook上
原标题:Silex/Symfony app working, but not in Facebook

I have a Silex + Twig app running just fine on Heroku when not iframed, but when iframed in Facebook, it throws an exception.

MethodNotAllowedHttpException: No route found for "POST /": Method Not Allowed (Allow: GET)

Silex有没有特别方式通过Facebook处理任何请求?

最佳回答

如果您的应用程序已装入Facebook( 在一个 iframe 中), 则第一个请求是 POST, 而不是 Get。 您的路径被定义为只获取路径 。 更改为 < code> - gt; method () (或甚至 < code > - gt; post () () , 但我建议方法), 它将有效 。

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签