I am trying to create a canvas Facebook application.
I have created Heroku application written in ruby via Faceb开发者_如何学Goook.
Creating the application I followed the steps of these guides:
http://devcenter.heroku.com/articles/facebook
http://devcenter.heroku.com/articles/configuring-your-facebook-app-as-a-canvas-page
After following these steps when I go to the application it says
Not Found
When I put it in Facebook's Object Debugger it says:
Extraneous Property - Objects of this type do not allow properties named og:site_url.
How can I fix this?
Thanks,
Oded
The canvas app POST's to '/'.
The heroku template is expecting GET.
See the following to accept both GET and POST's: http://ujihisa.blogspot.com/2009/11/accepting-both-get-and-post-method-in.html
Change
get '/' do ...
to...
def get_or_post(path, opts={}, &block)
get(path, opts, &block)
post(path, opts, &block)
end
get_or_post '/' do...
精彩评论