简体   繁体   English

如何使用python-social-auth使facebook身份验证弹出窗口

[英]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. 我在FacebookOAuth2后端使用基于python-social-auth的 social-auth-app-django ,并尝试在facebook身份验证应用程序设置中设置display=popup

Found this old issue for django-social-auth what is deprecated in favor of python-social-auth, but that options doesn't work. 发现这个老问题Django的社会身份验证什么是有利于蟒蛇-社会- AUTH的弃用,但选择不工作。

You can add below line to your settings 您可以将以下行添加到设置中

SOCIAL_AUTH_FACEBOOK_AUTH_EXTRA_ARGUMENTS = { 'display': 'popup', } 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 我从源代码中找到了它: https : //github.com/python-social-auth/social-core/blob/master/social_core/backends/base.py#L203

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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