Add information about changes in API version >= 2.3
Michal Szyndel authored 8 years ago
Josef Šimánek committed 8 years ago
70 | 70 | :site => 'https://graph.facebook.com/v2.0', |
71 | 71 | :authorize_url => "https://www.facebook.com/v2.0/dialog/oauth" |
72 | 72 | } |
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 } | |
73 | 86 | end |
74 | 87 | ``` |
75 | 88 | ### Per-Request Options |