Skip to content

Commit

Permalink
facebook: upgrade Graph API from v2.6 to v2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 26, 2017
1 parent 5ef0225 commit 62dd2b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -318,6 +318,8 @@ Changelog
---

### 1.8 - unreleased
* Facebook:
* Upgrade Graph API from v2.6 to v2.10.
* Flickr:
* Fix broken `FlickrAuth.urlopen()` method.
* Medium:
Expand Down
8 changes: 4 additions & 4 deletions oauth_dropins/facebook.py
Expand Up @@ -22,13 +22,13 @@
from google.appengine.ext import ndb


API_BASE = 'https://graph.facebook.com/v2.6/'
API_BASE = 'https://graph.facebook.com/v2.10/'

# facebook api url templates. can't (easily) use urllib.urlencode() because i
# want to keep the %(...)s placeholders as is and fill them in later in code.
# https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow#logindialog
GET_AUTH_CODE_URL = str('&'.join((
'https://www.facebook.com/v2.6/dialog/oauth?'
'https://www.facebook.com/v2.10/dialog/oauth?'
# https://developers.facebook.com/docs/reference/login/
'scope=%(scope)s',
'client_id=%(client_id)s',
Expand All @@ -46,8 +46,8 @@
'client_secret=%(client_secret)s',
'code=%(auth_code)s',
)))
API_USER_URL = API_BASE + 'me?fields=id,about,bio,cover,email,gender,link,location,name,public_key,timezone,updated_time,website'
API_PAGE_URL = API_BASE + 'me?fields=id,about,bio,cover,description,emails,general_info,is_published,link,location,name,personal_info,phone,username,website'
API_USER_URL = API_BASE + 'me?fields=id,about,cover,email,gender,link,location,name,public_key,timezone,updated_time,website'
API_PAGE_URL = API_BASE + 'me?fields=id,about,cover,description,emails,general_info,is_published,link,location,name,personal_info,phone,username,website'
API_PAGES_URL = API_BASE + 'me/accounts'


Expand Down
2 changes: 1 addition & 1 deletion oauth_dropins/webutil
Submodule webutil updated 4 files
+32 −7 handlers.py
+14 −0 test/test_handlers.py
+45 −24 testutil.py
+9 −7 util.py

0 comments on commit 62dd2b2

Please sign in to comment.