1
0
Fork 0
mirror of https://github.com/simi/omniauth-facebook.git synced 2022-11-09 12:32:45 -05:00

remove old info from README

This commit is contained in:
Mark Dodwell 2016-06-26 17:42:38 -07:00
parent d7379d4e7c
commit 28207f3d82

View file

@ -74,18 +74,6 @@ use OmniAuth::Builder do
end
```
In API version 2.3 Facebook changed OAuth response format which is different from current omniauth-facebook default.
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.
```ruby
use OmniAuth::Builder do
provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'],
:client_options => {
...
},
token_params: { parse: :json }
end
```
### Per-Request Options
If you want to set the `display` format, `auth_type`, or `scope` on a per-request basis, you can just pass it to the OmniAuth request phase URL, for example: `/auth/facebook?display=popup` or `/auth/facebook?scope=email`.