OmniAuth Strategies Facebook NoAuthorizationCodeError (must pass either a `code` parameter or a signed request (via `signed_request` parameter):
I recently encountered this error when also using the FB JS SDK with omniauth-facebook. I fixed it by sending the signed_request parameter with the GET as shown below: $(document).bind(“fb.loaded”, function() { FB.getLoginStatus(function(response) { console.log(‘FB STATUS: ‘ + response.status); if(response.status == “connected”) { console.log(“FB AUTHED”); location.href=”https://stackoverflow.com/auth/facebook/callback?” + $.param({ signed_request: response.authResponse.signedRequest }) }); } }); }); The … Read more