[Python-modules-commits] [python-social-auth] 92/131: Update facebook api version to v2.7

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:17:07 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 97eea03e6b70eecddacbdbe97d9ace248148bd88
Author: c-bata <contact at c-bata.link>
Date:   Mon Aug 1 15:20:45 2016 +0900

    Update facebook api version to v2.7
---
 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 59ee09f..f904556 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.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'
+    AUTHORIZATION_URL = 'https://www.facebook.com/v2.7/dialog/oauth'
+    ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.7/oauth/access_token'
+    REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.7/{uid}/permissions'
     REVOKE_TOKEN_METHOD = 'DELETE'
-    USER_DATA_URL = 'https://graph.facebook.com/v2.6/me'
+    USER_DATA_URL = 'https://graph.facebook.com/v2.7/me'
     EXTRA_DATA = [
         ('id', 'id'),
         ('expires', 'expires')
diff --git a/social/tests/backends/test_facebook.py b/social/tests/backends/test_facebook.py
index 2a460d7..81146d9 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.6/me'
+    user_data_url = 'https://graph.facebook.com/v2.7/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