Rack::Facebook::MethodFix

Added by tuupola at November 06, 2011 22:06 Star_small_grayStar_small_grayStar_small_grayStar_small_grayStar_small_gray facebook
GitHub stats:
Magnifier watcher(s)
Arrow_branch fork(s)
Wrench

About

In early 2011 Facebook started to send all application requests as POST. This middleware converts POST requests back to GET when applicable.

Details

Rack::Facebook::MethodFix looks for incoming POST requests. If the request contains signed_request parameter it converts request to GET as originally intended. Optionally if you pass in Facebook application secret_id it will also require the contents of signed_request to be valid.

Usage

Check usage from project page.

blog comments powered by Disqus