https://github.com/facebook/python-sdk
You have to use this. As the method giving error is implemented on Facebook Python-SDK. Regards //Vikalp On Mon, Mar 21, 2011 at 4:15 PM, Calvin Spealman <ironfro...@gmail.com>wrote: > Do you possibly have a module or package in your project named "facebook"? > One of the requirements for django-socialauth is the facebook python > library, but if you have another module by the same name, that could be > imported instead. > > > On Mon, Mar 21, 2011 at 4:23 AM, Nge Nge <ngenge.mon...@gmail.com> wrote: > >> Hi All! >> >> I am already tried to login from my django form via facebook login. >> I am testing with django-socialregistration from ( >> https://github.com/flashingpumpkin/django-socialregistration.git). >> I am facing the following error when I run my program. >> Please help me.. How should I do?? >> >> Nge >> >> AttributeError at / >> >> 'module' object has no attribute 'get_user_from_cookie' >> >> Request Method: GET >> Request URL: http://127.0.0.1:8080/ >> Django Version: 1.2.5 >> Exception Type: AttributeError >> Exception Value: >> >> 'module' object has no attribute 'get_user_from_cookie' >> >> Exception Location: /home/mya/FBWorkSpace/FacebookTest/FacebookTest/ >> django-socialregistration/socialregistration/middleware.py in >> process_request, line 24 >> Python Executable: /usr/bin/python >> Python Version: 2.6.6 >> Python Path: ['/home/mya/FBWorkSpace/FacebookTest/FacebookTest', '/ >> usr/local/lib/python2.6/dist-packages/pyfacebook-1.0a2-py2.6.egg', '/ >> usr/local/lib/python2.6/dist-packages/pip-0.8.3-py2.6.egg', '/usr/ >> local/lib/python2.6/dist-packages/virtualenv-1.5.2-py2.6.egg', '/usr/ >> local/lib/python2.6/dist-packages/django_social_auth-0.3.8-py2.6.egg', >> '/usr/local/lib/python2.6/dist-packages/python_openid-2.2.5- >> py2.6.egg', '/usr/local/lib/python2.6/dist-packages/oauth2-1.5.167- >> py2.6.egg', '/usr/local/lib/python2.6/dist-packages/Django-1.2.5- >> py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/ >> usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/ >> python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/ >> usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/ >> PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/ >> python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/ >> pymodules/python2.6/gtk-2.0'] >> Server time: Mon, 21 Mar 2011 15:19:17 -0500 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Read my blog! I depend on your acceptance of my opinion! I am interesting! > http://techblog.ironfroggy.com/ > Follow me if you're into that sort of thing: > http://www.twitter.com/ironfroggy > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.