Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Creating POST routes for wicked #35

Closed
macmartine opened this Issue Aug 29, 2012 · 2 comments

Comments

Projects
None yet
2 participants

(Apologies in advance, this is more a question than a bug)

I have created a 'widget' using Wicked that I'm trying to use in a Facebook Canvas App.

Facebook calls the specified URL with POST as opposed to GET, so it searches for an action with the name of the 'step' instead of the show action, resulting in a 500 error.

Can you think of a workaround for this?

I'm thinking I might be able to create an action for each step name, and redirect as appropriate, but that'd be pretty ugly.

Thanks for the great gem!

ssendev commented Aug 30, 2012

Try appending ?_method=get to the url Facebook visits.

Good thought, but unfortunately that didn't work.

I've ended up doing a redirect_to which actually works out great because I need to gather some info from the POST request first. Thanks!

@macmartine macmartine closed this Aug 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment