From 403d13216bc7eafe6c9f58675383d4451794397d Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 5 Jul 2013 13:13:40 -0400 Subject: [PATCH] Update FacebookGraphMixin with new authorization url. The old url still works, but results in an extra redirect. --- tornado/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/auth.py b/tornado/auth.py index 825fda417..0cbfa7c04 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -1158,7 +1158,7 @@ class FacebookMixin(object): class FacebookGraphMixin(OAuth2Mixin): """Facebook authentication using the new Graph API and OAuth2.""" _OAUTH_ACCESS_TOKEN_URL = "https://graph.facebook.com/oauth/access_token?" - _OAUTH_AUTHORIZE_URL = "https://graph.facebook.com/oauth/authorize?" + _OAUTH_AUTHORIZE_URL = "https://www.facebook.com/dialog/oauth?" _OAUTH_NO_CALLBACKS = False _FACEBOOK_BASE_URL = "https://graph.facebook.com" -- 2.47.2