Skip to content

Support Facebook Graph API 2.2 #480

@Gromph

Description

@Gromph

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions