Django-allauth: FB connect working with oauth2, but not with js-sdk -


i'm trying connect fb using django-allauth. earlier went oauth method , working fine, access tokens. now, i'm trying run js_sdk, cant figure problem here.

settings.py:

socialaccount_providers = \ { 'facebook':     { 'scope': ['email', 'publish_stream','user_birthday'],       'auth_params': { 'auth_type': 'reauthenticate' },       'method': 'js_sdk' ,       'locale_func': lambda request: 'en_us'}} 

html:

   {% load socialaccount %}      {% providers_media_js %}    <a href ="{% provider_login_url "facebook" method="js_sdk" %}">facebook connect</a> 

on clicking fb connect link, nothing happens tries make call javacript:fb_login(''), doesn't work.

any on great. thanks!

did override default allauth templates? if so, please make sure add following login template:

{% load socialaccount %} {% providers_media_js %} 

in default templates, happens here:

https://github.com/pennersr/django-allauth/blob/27e2a8de0fe3c0c2e65ab8337617eb17a359940c/allauth/templates/account/login.html#l28

the tag adds required javascript (if any) enabled providers.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -