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:
parent
d7379d4e7c
commit
28207f3d82
1 changed files with 0 additions and 12 deletions
12
README.md
12
README.md
|
@ -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`.
|
||||
|
|
Loading…
Add table
Reference in a new issue