From: Ben Darnell Date: Fri, 5 Jul 2013 17:13:40 +0000 (-0400) Subject: Update FacebookGraphMixin with new authorization url. X-Git-Tag: v3.2.0b1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403d13216bc7eafe6c9f58675383d4451794397d;p=thirdparty%2Ftornado.git Update FacebookGraphMixin with new authorization url. The old url still works, but results in an extra redirect. --- 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"