mirror of
https://github.com/simi/omniauth-facebook.git
synced 2022-11-09 12:32:45 -05:00
update readme
This commit is contained in:
parent
6b46ca248e
commit
ae23a8768c
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
|
|||
|
||||
```ruby
|
||||
Rails.application.config.middleware.use OmniAuth::Builder do
|
||||
provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], :scope => 'email', :display => 'popup'
|
||||
provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
|
||||
end
|
||||
```
|
||||
|
||||
|
@ -62,8 +62,8 @@ Here's an example *Authentication Hash* available in `request.env['omniauth.auth
|
|||
:location => 'Palo Alto, California'
|
||||
},
|
||||
:credentials => {
|
||||
:token => 'ABCDEF...',
|
||||
:expires_at => 1321747205, # when the access token expires
|
||||
:token => 'ABCDEF...', # OAuth 2.0 access_token, which you may wish to store
|
||||
:expires_at => 1321747205, # when the access token expires (if it expires)
|
||||
:expires => true # if you request `offline_access` this will be false
|
||||
},
|
||||
:extra => {
|
||||
|
|
Loading…
Reference in a new issue