1

Im trying to implement django-socialregistration, with all dependences included, I just followed those instructions. im having this error after authenticating with facebook:

'WSGIRequest' object has no attribute 'facebook'
C:\Python25\lib\site-packages\socialregistration\views.py in facebook_login
    108. if not request.facebook.check_session(request):

what im missing? some middleware excepted? thx :)

panchicore
  • 11,451
  • 12
  • 74
  • 100

2 Answers2

2

Actually, you need 'socialregistration.middleware.FacebookMiddleware' in MIDDLEWARE_CLASSES

not 'facebook.djangofb..' one.

Armance
  • 5,350
  • 14
  • 57
  • 80
Spajus
  • 7,356
  • 2
  • 25
  • 26
0

solved.

adding 'facebook.djangofb.FacebookMiddleware' to MIDDLEWARE_CLASSES in settings.py will attach a facebook object to every incoming request.

panchicore
  • 11,451
  • 12
  • 74
  • 100
  • Not solved. I have this same problem, and this is already in my middleware. Additionally, as noted by Spajus, you are wrong. – Bryson Sep 27 '11 at 19:45