Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Facebook Graph API 2.2 #480

Closed
Gromph opened this issue Jan 8, 2015 · 2 comments
Closed

Support Facebook Graph API 2.2 #480

Gromph opened this issue Jan 8, 2015 · 2 comments

Comments

@Gromph
Copy link

Gromph commented Jan 8, 2015

To support Graph API 2.2 I created a subclass, and updated the version in the urls. Is this all that should be needed? Everything seems to work ok for me so far.

class Facebook22OAuth2(Facebook2OAuth2):
"""Facebook OAuth2 authentication backend using Facebook Open Graph 2.2"""
AUTHORIZATION_URL = 'https://www.facebook.com/v2.2/dialog/oauth'
ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.2/oauth/access_token'
REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.2/{uid}/permissions'
USER_DATA_URL = 'https://graph.facebook.com/v2.2/me'

@gfranxman
Copy link

Same here, FYI. Worked like a charm.

@omab
Copy link
Owner

omab commented Apr 8, 2015

Sorry about the delay, I've updated it to v2.3 (which changed the message response from querystring to json).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants