From fc6fb2a0e4ff07d940ac170df47fa7d6452c860b Mon Sep 17 00:00:00 2001 From: Filip Stanis Date: Thu, 2 Aug 2018 14:56:03 +0100 Subject: [PATCH] Update Facebook endpoints Per official documentation here: https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow --- facebook/facebook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facebook/facebook.go b/facebook/facebook.go index 14c801a..21c49e7 100644 --- a/facebook/facebook.go +++ b/facebook/facebook.go @@ -11,6 +11,6 @@ import ( // Endpoint is Facebook's OAuth 2.0 endpoint. var Endpoint = oauth2.Endpoint{ - AuthURL: "https://www.facebook.com/dialog/oauth", - TokenURL: "https://graph.facebook.com/oauth/access_token", + AuthURL: "https://www.facebook.com/v3.1/dialog/oauth", + TokenURL: "https://graph.facebook.com/v3.1/oauth/access_token", }