I'm trying to connect to FB using django-allauth. Earlier I went with the oauth method and it was working fine, get all the access tokens. But now, I'm trying to run with js_sdk, but cant figure the 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 the Fb connect link, nothing happens as it tries to make a call to javacript:FB_login(''), which doesn't work.
Any help on this would be great. Thanks!