Skip to content

Commit

Permalink
Fixed the example in the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdeschenes committed Nov 24, 2020
1 parent 3d25f5b commit 2c1356f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -29,6 +29,6 @@ require 'oauth2_fb_exchange_token_strategy'
client = OAuth2::Client.new('client_id', 'client_secret', site: 'https://graph.facebook.com/v9.0', authorize_url: 'https://www.facebook.com/v8.0/dialog/oauth', token_url: 'oauth/access_token')

short_lived_token = client.auth_code.get_token('authorization_code_value', redirect_uri: 'http://example.org/oauth2/callback')
token = client.fb_exchange_token(short_lived_token.token)
token = client.fb_exchange_token.get_token(short_lived_token.token)
# => OAuth2::AccessToken
```

0 comments on commit 2c1356f

Please sign in to comment.