Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sencha application in a Facebook iFrame gets a "Cannot POST /"

I have a Sencha Touch application using Node.js and Socket.io running on Amazon EC2 (micro instance). I want to make it available on Facebook, in a Facebook Canvas, aka an HTML iFrame.

I get a blank page with Cannot POST /

The iframe is here (when I do "Open frame in new window" it opens the app). I have no idea what to do here… why do I get a POST /?

I use the Facebook Javascript SDK in the app, but commenting the code doesn't resolve the issue.

like image 743
Alexandre Testu Avatar asked May 17 '11 16:05

Alexandre Testu


2 Answers

It looks like POST for Canvas may be causing your issues.

like image 124
Gray Avatar answered Nov 18 '22 21:11

Gray


We solved a similar problem recently by changing this line:

app.get('/home', function(request, response) {

to this

app.all('/home', function(request, response) {
like image 2
rabidmachine9 Avatar answered Nov 18 '22 21:11

rabidmachine9