Hi, I'm starting a new project using Python Social Auth and Django. I'm able to generate the link to authenticate on Facebook, which is http://127.0.0.1:8000/login/facebook/?next=/events/, but clicking on it I get the following exception:
Traceback:
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/social/apps/django_app/utils.py" in wrapper
48. backend, uri)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/social/apps/django_app/utils.py" in load_backend
29. Backend = get_backend(BACKENDS, name)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/social/backends/utils.py" in get_backend
51. load_backends(backends, force_load=True)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/social/backends/utils.py" in load_backends
33. backend = module_member(auth_backend)
File "/home/paolo/devel/projects/project/socialauth/lib/python3.4/site-packages/social/utils.py" in module_member
57. return getattr(module, member)
Exception Type: AttributeError at /login/facebook/
Exception Value: 'module' object has no attribute 'FacebookOauth2'
Check the name in your AUTHENTICATION_BACKENDS setting, it should read social.backends.facebook.FacebookOAuth2 (note the uppercase A in the OAuth2 part in the name).
Hi, I'm starting a new project using Python Social Auth and Django. I'm able to generate the link to authenticate on Facebook, which is http://127.0.0.1:8000/login/facebook/?next=/events/, but clicking on it I get the following exception:
Any clue why? I get the issue in this sample project.