plataformatec/devise — Issue #1463: OmniAuth facebook sample error
Author: kucss
Created: 2011-11-25 09:32:24+00:00
State: open

I have followed https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview step by step.

When i click page "Sign in with Facebook" link. It turns me the error page as bellow.

。URL
https://graph.facebook.com/oauth/authorize?scope=email%2Coffline_access%2Cread_stream&response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback

。page show content

Fetch Server Info

GET 'https://graph.facebook.com:443/oauth/authorize?scope=email%2Coffline_access%2Cread_stream&response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback'

Return Code: 500

Message: Urlfetch error: ["GET 'https://graph.facebook.com:443/oauth/authorize?scope=email%2Coffline_access%2Cread_stream&response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback' return 400", "GET 'https://graph.facebook.com:443/oauth/authorize?scope=email%2Coffline_access%2Cread_stream&response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback' return 400", "GET 'https://graph.facebook.com:443/oauth/authorize?scope=email%2Coffline_access%2Cread_stream&response_type=code&client_id=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fusers%2Fauth%2Ffacebook%2Fcallback' return 400"]

。my gem file is
gem 'devise', :git => "git://github.com/plataformatec/devise.git"
gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-facebook', '1.0.0.rc1'
gem "oa-core"

Do you know hot to resolve the problem?