简体   繁体   中英

How to make facebook authentication pop-ups using python-social-auth

I'm using social-auth-app-django with FacebookOAuth2 backend what is based on python-social-auth and trying to set display=popup at facebook authentication trought app settings.

Found this old issue for django-social-auth what is deprecated in favor of python-social-auth, but that options doesn't work.

You can add below line to your settings

SOCIAL_AUTH_FACEBOOK_AUTH_EXTRA_ARGUMENTS = { 'display': 'popup', }

I found out it from the source code: https://github.com/python-social-auth/social-core/blob/master/social_core/backends/base.py#L203

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM