You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
I came across an odd issue today when I was implementing facebook authentication in development against a test app I had set up and I'm wondering if anyone else has seen it.
TOKEN_URL in facebook_authentication.rb sets the redirect_uri at the end of the string. Mine had been set and I verified that it matched what I had used for the
Oauth dialog request
my app's settings on Facebook under Settings -> Basic -> Website -> Site URL
and also the Valid OAuth redirect URIs under Client Settings
but I kept seeing
facebook API request failed with status 400.
facebook API error response was:
{"error":{"message":"Missing redirect_uri parameter.","type":"OAuthException","code":191,"fbtrace_id":"FUCYqE8QrwS"}}
I noticed in the FB documentation for Manually Building a Login Flow under Exchanging code for an access token that the parameters are documented in a different order than in facebook_authentication.rb's TOKEN_URL, namely, redirect_uri appears between client_id and _client_secret instead of at the end after code.
I updated my local gem's version of TOKEN_URL to match the order of the params in the documentation and it started working. I wouldn't suspect this would matter but in my case it did.
The text was updated successfully, but these errors were encountered:
I came across an odd issue today when I was implementing facebook authentication in development against a test app I had set up and I'm wondering if anyone else has seen it.
TOKEN_URL
infacebook_authentication.rb
sets theredirect_uri
at the end of the string. Mine had been set and I verified that it matched what I had used for thebut I kept seeing
I noticed in the FB documentation for Manually Building a Login Flow under Exchanging code for an access token that the parameters are documented in a different order than in
facebook_authentication.rb
'sTOKEN_URL
, namely,redirect_uri
appears betweenclient_id
and_client_secret
instead of at the end aftercode
.I updated my local gem's version of
TOKEN_URL
to match the order of the params in the documentation and it started working. I wouldn't suspect this would matter but in my case it did.The text was updated successfully, but these errors were encountered: