[Python-modules-commits] [python-social-auth] 67/131: Upgrade facebook backend api to latest version (v2.6)
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:17:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.20
in repository python-social-auth.
commit ed633c471d9eff70a65a4f9096badc16474ae50f
Author: Phivos Stylianides <stphivos at gmail.com>
Date: Tue Jun 28 16:36:49 2016 +0200
Upgrade facebook backend api to latest version (v2.6)
---
social/backends/facebook.py | 8 ++++----
social/tests/backends/test_facebook.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/social/backends/facebook.py b/social/backends/facebook.py
index f76b502..59ee09f 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/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'
+ AUTHORIZATION_URL = 'https://www.facebook.com/v2.6/dialog/oauth'
+ ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.6/oauth/access_token'
+ REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.6/{uid}/permissions'
REVOKE_TOKEN_METHOD = 'DELETE'
- USER_DATA_URL = 'https://graph.facebook.com/v2.3/me'
+ USER_DATA_URL = 'https://graph.facebook.com/v2.6/me'
EXTRA_DATA = [
('id', 'id'),
('expires', 'expires')
diff --git a/social/tests/backends/test_facebook.py b/social/tests/backends/test_facebook.py
index 166d753..2a460d7 100644
--- a/social/tests/backends/test_facebook.py
+++ b/social/tests/backends/test_facebook.py
@@ -7,7 +7,7 @@ from social.tests.backends.oauth import OAuth2Test
class FacebookOAuth2Test(OAuth2Test):
backend_path = 'social.backends.facebook.FacebookOAuth2'
- user_data_url = 'https://graph.facebook.com/v2.3/me'
+ user_data_url = 'https://graph.facebook.com/v2.6/me'
expected_username = 'foobar'
access_token_body = json.dumps({
'access_token': 'foobar',
--
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