From 01011c08aca6bfc7593f1efa0e317344850d16ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Mon, 27 Jan 2020 20:27:07 +0100 Subject: [PATCH] Adjust README.md version change example. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01a2039..c9f8856 100644 --- a/README.md +++ b/README.md @@ -58,14 +58,14 @@ end ### API Version -OmniAuth Facebook uses versioned API endpoints by default (current v3.0). You can configure a different version via `client_options` hash passed to `provider`, specifically you should change the version in the `site` and `authorize_url` parameters. For example, to change to v3.0 (assuming that exists): +OmniAuth Facebook uses versioned API endpoints by default (current v3.0). You can configure a different version via `client_options` hash passed to `provider`, specifically you should change the version in the `site` and `authorize_url` parameters. For example, to change to v4.0 (assuming that exists): ```ruby use OmniAuth::Builder do provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], client_options: { - site: 'https://graph.facebook.com/v3.0', - authorize_url: "https://www.facebook.com/v3.0/dialog/oauth" + site: 'https://graph.facebook.com/v4.0', + authorize_url: "https://www.facebook.com/v4.0/dialog/oauth" } end ```