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

Facebook Social Login Provider ignores LOCALE language settings from settings dictionary #2880

Open
RuchitMicro opened this issue Jun 4, 2021 · 3 comments

Comments

@RuchitMicro
Copy link

# Provider specific settings
SOCIALACCOUNT_PROVIDERS = {
    'facebook': {
        'METHOD': 'oauth2',
        'SDK_URL': '//connect.facebook.net/{locale}/sdk.js',
        'SCOPE': ['email', 'public_profile','ads_management'],
        'AUTH_PARAMS': {},
        'INIT_PARAMS': {'cookie': False},
        'FIELDS': [
            'id',
            'first_name',
            'last_name',
            'middle_name',
            'name',
            'name_format',
            'picture',
            'short_name',
        ],
        'EXCHANGE_TOKEN': True,
        'VERIFIED_EMAIL': False,
        'LOCALE_FUNC': lambda request: 'en_US',
        'VERSION': 'v10.0',
        'APP': {
            'client_id': '*******************',  # !!! THIS App ID
            'secret': '****************************',  # !!! THIS App Secret
            'key': ''
        }
    }
}

SOCIALACCOUNT_ADAPTER                   = "project.mysocialaccountadapter.MySocialAccountAdapter"
SOCIALACCOUNT_STORE_TOKENS              = True
ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS   = False

These are my provider settings where I have a callback function in LOCALE_FUNC returning en_US but when I login to facebook this language setting is ignored and local language is selected

@derek-adair
Copy link

Bumping this... sorry I can't provide more input but this seems valid if its still true / not already fixed. Very unlikely to be a facebook issue.

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
@derek-adair @RuchitMicro and others