开发者

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

开发者 https://www.devze.com 2023-03-06 18:58 出处:网络
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 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 t开发者_运维问答he issue.


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


We solved a similar problem recently by changing this line:

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

to this

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

精彩评论

暂无评论...
验证码 换一张
取 消