Skip to content

Commit

Permalink
Update default Facebook Graph API version to v2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ozren1983 authored and pennersr committed Sep 18, 2017
1 parent 463202c commit 3c354af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion allauth/socialaccount/providers/facebook/provider.py
Expand Up @@ -23,7 +23,7 @@


GRAPH_API_VERSION = getattr(settings, 'SOCIALACCOUNT_PROVIDERS', {}).get(
'facebook', {}).get('VERSION', 'v2.4')
'facebook', {}).get('VERSION', 'v2.5')
GRAPH_API_URL = 'https://graph.facebook.com/' + GRAPH_API_VERSION

NONCE_SESSION_KEY = 'allauth_facebook_nonce'
Expand Down
4 changes: 2 additions & 2 deletions docs/providers.rst
Expand Up @@ -419,7 +419,7 @@ The following Facebook settings are available:
'EXCHANGE_TOKEN': True,
'LOCALE_FUNC': 'path.to.callable',
'VERIFIED_EMAIL': False,
'VERSION': 'v2.4',
'VERSION': 'v2.5',
}
}
Expand Down Expand Up @@ -479,7 +479,7 @@ VERIFIED_EMAIL:
risk.

VERSION:
The Facebook Graph API version to use. The default is ``v2.4``.
The Facebook Graph API version to use. The default is ``v2.5``.

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

3 comments on commit 3c354af

@karthikrajender
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the graph api version change is essentially needed ? I have a problem with access token authentication when i have created a new facebook app with version 2.10, and got the access token and that access token is not authenticated... how to make this compatible for latest version of Facebook apps

@pennersr
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, 2.4 expires the 7th of october. See: https://developers.facebook.com/docs/graph-api/changelog
You do not need to jump to 2.10 though, you can use 2.5 if you like.

@karthikrajender
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for using 2.5 graph api, i need to update only this code or i need to update entire all auth extension

Please sign in to comment.