invalid_credentials error and no info what's wrong

529 views
Skip to first unread message

Roman

unread,
Jun 28, 2011, 12:16:38 PM6/28/11
to omniauth
I get an error when i try to login with facebook via omniauth gem ver.
0.2.6.
It shows invalid_credentials.
http://localhost:3000/auth/failure?message=invalid_credentials
I use this code in initializer/omniauth.rb

Rails.application.config.middleware.use OmniAuth::Builder do
provider :facebook,
"app_id",
"app_secret",
{:scope=>[:email,:user_birthday],:client_options =>
{:ssl => {:ca_path => "/etc/ssl/certs"}} }
end

Started GET "/auth/facebook" for 127.0.0.1
Started GET "/auth/facebook/callback?
code=0b49kydcswTkMNfx_C9BwhE0Z-
g9kO_oE0aJ2F4ghy0.eyJpdiI6IjlYaXRxTF9NdFBGbWtBUk9ZUXVSdUEifQ.DsDgdFUpuC6Z_B_m8j1MiAN1cQRS_Mcr9VvvZvSurs0wUyCRAvjDDEYjE6b6_VUF0KNkeLUy9lJCF2IF2BBGOeAt95fggdI49jZKwqo842z3cdsJQ2kZTQcQrs0jinxn"
for 127.0.0.1

This all i get. I double checked app_id and app_secret all is ok and
tried php version it works fine. So there is no error in this.

So how i can find more info about an error at least ? or how this
problem can be fixed ?

Thomas Mango

unread,
Jun 28, 2011, 12:19:47 PM6/28/11
to omni...@googlegroups.com
Have you tried using the API Key and App Secret from Facebook, rather than the App ID and App Secret?

--
Thomas Mango
tsm...@gmail.com

Roman

unread,
Jul 1, 2011, 2:54:56 AM7/1/11
to omniauth
of course i am
it's a bug in omniauth gem
https://github.com/intridea/omniauth/issues/377
https://github.com/intridea/omniauth/issues/383

On Jun 28, 8:19 pm, Thomas Mango <tsma...@gmail.com> wrote:
> Have you tried using the API Key and App Secret from Facebook, rather than the App ID and App Secret?
>
> --
> Thomas Mango
> tsma...@gmail.com
Reply all
Reply to author
Forward
0 new messages