README.md in omniauth-facebook-2.0.0 vs README.md in omniauth-facebook-2.0.1

- old
+ new

@@ -57,9 +57,22 @@ provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], :scope => 'email,user_birthday,read_stream', :display => 'popup' end ``` +### API Version + +OmniAuth Facebook uses unversioned API endpoints by default. You can configure custom endpoints via `client_options` hash passed to `provider`. + +```ruby +use OmniAuth::Builder do + provider :facebook, ENV['APP_ID'], ENV['APP_SECRET'], + :client_options => { + :site => 'https://graph.facebook.com/v2.0', + :authorize_url => "https://www.facebook.com/v2.0/dialog/oauth" + } +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`. ## Auth Hash