[Python-modules-commits] [python-social-auth] 239/322: Update Facebook to API v2.3
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:13:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.10
in repository python-social-auth.
commit d61012d06805b5886ac8ced803ddcb9211a0f8b3
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date: Tue Apr 7 22:53:22 2015 -0300
Update Facebook to API v2.3
Fixes #480
---
social/backends/facebook.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/social/backends/facebook.py b/social/backends/facebook.py
index 3de7573..f3a3b07 100644
--- a/social/backends/facebook.py
+++ b/social/backends/facebook.py
@@ -19,11 +19,11 @@ class FacebookOAuth2(BaseOAuth2):
name = 'facebook'
RESPONSE_TYPE = None
SCOPE_SEPARATOR = ','
- AUTHORIZATION_URL = 'https://www.facebook.com/dialog/oauth'
- ACCESS_TOKEN_URL = 'https://graph.facebook.com/oauth/access_token'
- REVOKE_TOKEN_URL = 'https://graph.facebook.com/{uid}/permissions'
+ AUTHORIZATION_URL = 'https://www.facebook.com/v2.3/dialog/oauth'
+ ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.3/oauth/access_token'
+ REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.3/{uid}/permissions'
REVOKE_TOKEN_METHOD = 'DELETE'
- USER_DATA_URL = 'https://graph.facebook.com/me'
+ USER_DATA_URL = 'https://graph.facebook.com/v2.3/me'
EXTRA_DATA = [
('id', 'id'),
('expires', 'expires')
@@ -71,7 +71,7 @@ class FacebookOAuth2(BaseOAuth2):
state = self.validate_state()
key, secret = self.get_key_and_secret()
url = self.ACCESS_TOKEN_URL
- response = self.get_querystring(url, params={
+ response = self.get_json(url, params={
'client_id': key,
'redirect_uri': self.get_redirect_uri(state),
'client_secret': secret,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list