Skip to content

Commit

Permalink
Update Omniauth for Facebook compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 1, 2015
1 parent e3ace0e commit 50d1def
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
39 changes: 22 additions & 17 deletions Gemfile.lock
Expand Up @@ -71,7 +71,7 @@ GEM
erubis (2.7.0)
escape_utils (0.2.4)
execjs (2.2.1)
faraday (0.8.9)
faraday (0.8.11)
multipart-post (~> 1.2.0)
faraday_middleware (0.8.8)
faraday (>= 0.7.4, < 0.9)
Expand All @@ -82,12 +82,13 @@ GEM
fssm (0.2.10)
gherkin (2.4.21)
json (>= 1.4.6)
hashie (2.0.5)
hashie (3.4.3)
hike (1.2.3)
i18n (0.7.0)
journey (1.0.4)
json (1.8.3)
json_pure (1.6.1)
jwt (1.5.2)
kgio (2.9.2)
launchy (2.0.5)
addressable (~> 2.2.6)
Expand All @@ -99,6 +100,7 @@ GEM
mongo-rails-instrumentation (0.2.4)
mongo_ext (0.19.3)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
never-forget (0.1.2)
activesupport
Expand All @@ -108,23 +110,26 @@ GEM
nibbler (1.3.0)
nokogiri (1.5.11)
oauth (0.4.7)
oauth2 (0.5.2)
faraday (~> 0.7)
multi_json (~> 1.0)
omniauth (1.1.4)
hashie (>= 1.2, < 3)
rack
omniauth-facebook (1.2.0)
omniauth-oauth2 (~> 1.0.0)
omniauth-oauth (1.0.1)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
omniauth (1.2.2)
hashie (>= 1.2, < 4)
rack (~> 1.0)
omniauth-facebook (3.0.0)
omniauth-oauth2 (~> 1.2)
omniauth-oauth (1.1.0)
oauth
omniauth (~> 1.0)
omniauth-oauth2 (1.0.0)
oauth2 (~> 0.5.0)
omniauth (~> 1.0)
omniauth-twitter (0.0.16)
multi_json (~> 1.3)
omniauth-oauth (~> 1.0)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
omniauth-twitter (1.2.1)
json (~> 1.3)
omniauth-oauth (~> 1.1)
power_assert (0.2.4)
rack (1.4.7)
rack-cache (1.5.0)
Expand Down
5 changes: 4 additions & 1 deletion config/application.rb
Expand Up @@ -54,7 +54,10 @@ class Application < Rails::Application
config.twitter.consumer_key, config.twitter.secret

config.middleware.use OmniAuth::Strategies::Facebook,
config.facebook.app_id, config.facebook.secret
config.facebook.app_id, config.facebook.secret, :client_options => {
:site => 'https://graph.facebook.com/v2.2',
:authorize_url => "https://www.facebook.com/v2.2/dialog/oauth"
}

config.middleware.use Twin

Expand Down

0 comments on commit 50d1def

Please sign in to comment.