Codebase list ruby-omniauth-facebook / 8d693d4
Add information about changes in API version >= 2.3 Michal Szyndel authored 8 years ago Josef Šimánek committed 8 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7070 :site => 'https://graph.facebook.com/v2.0',
7171 :authorize_url => "https://www.facebook.com/v2.0/dialog/oauth"
7272 }
73 end
74 ```
75
76 In API version 2.3 Facebook changed OAuth response format which is different from current omniauth-facebook default.
77 If you intend to use this or newer version (which might be a minimum allowed for your app!) you need to provide additional argument to `provider` as shown below.
78
79 ```ruby
80 use OmniAuth::Builder do
81 provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'],
82 :client_options => {
83 ...
84 },
85 token_params: { parse: :json }
7386 end
7487 ```
7588 ### Per-Request Options