Skip to content

Commit

Permalink
feat(facebook): set the default Graph API version to v13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-v authored Mar 18, 2022
1 parent 977a11e commit 672507e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.50.0 (unreleased)
*******************

Note worthy changes
-------------------

- The Facebook API version now defaults to v13.0.


0.49.0 (2022-02-22)
*******************

Expand Down
2 changes: 1 addition & 1 deletion allauth/socialaccount/providers/facebook/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
GRAPH_API_VERSION = (
getattr(settings, "SOCIALACCOUNT_PROVIDERS", {})
.get("facebook", {})
.get("VERSION", "v7.0")
.get("VERSION", "v13.0")
)
GRAPH_API_URL = "https://graph.facebook.com/" + GRAPH_API_VERSION

Expand Down
4 changes: 2 additions & 2 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ The following Facebook settings are available:
'EXCHANGE_TOKEN': True,
'LOCALE_FUNC': 'path.to.callable',
'VERIFIED_EMAIL': False,
'VERSION': 'v7.0',
'VERSION': 'v13.0',
}
}
Expand Down Expand Up @@ -677,7 +677,7 @@ VERIFIED_EMAIL:
risk.

VERSION:
The Facebook Graph API version to use. The default is ``v7.0``.
The Facebook Graph API version to use. The default is ``v13.0``.

App registration (get your key and secret here)
A key and secret key can be obtained by
Expand Down

0 comments on commit 672507e

Please sign in to comment.