remove references to state param in docs
Mark Dodwell
10 years ago
86 | 86 | # signed_request FB sends us, asking for auth if the user has |
87 | 87 | # not already granted access, or simply moving straight to the |
88 | 88 | # callback where they have already granted access. |
89 | # | |
90 | # we pass the state parameter which we can detect in our callback | |
91 | # to do custom rendering/redirection for the canvas app page | |
92 | redirect "/auth/facebook?signed_request=#{request.params['signed_request']}&state=canvas" | |
89 | redirect "/auth/facebook?signed_request=#{request.params['signed_request']}" | |
93 | 90 | end |
94 | 91 | |
95 | 92 | get '/auth/:provider/callback' do |
96 | # we can do something special here is +state+ param is canvas | |
97 | # (see notes above in /canvas/ method for more details) | |
98 | 93 | content_type 'application/json' |
99 | 94 | MultiJson.encode(request.env) |
100 | 95 | end |