Django-facebook icon indicating copy to clipboard operation
Django-facebook copied to clipboard

ValueError at /facebook/connect/

Open codeg8 opened this issue 10 years ago • 3 comments

I am new to django and i and i am using the Django-facebook to use the Facebook API's In my Applciation. I followed the tutorials as given in This Link

I am currently running my application at local.myexampledomain.com and in my facebook Application Settings My website URL is http://local.myexampledomain.com/

When I redirect my application to http://local.myexampledomain.com/facebook/connect I get this Error :

ValueError at /facebook/connect/
Please specify a Facebook app id and ensure the context processor is enabled
Request Method: GET
Request URL:    http://local.myexampledomain.com/facebook/connect/?attempt=1&code=AQDsXCLiM0W5MlI-yi0HFyg7QKAUOuZJ0gzFi9NisUm9bHuvqcm-SEtYr79gMPydaVXcuoM5_M0p3piYG6TUesfbDniJJVJx8dLeZ8_MOGy7fwJVxsVHIoxIaccrDVyCFWIx5Q3MlRj3FhjzxNRy4V187FPqpxNv2HWWZ_4otP1UYyQqP6fFEg9yyEUbh9s92Ucqx7nErO-k0kQFrLeSYNYr9kVi03QOVeC40k6SdaQXuKnJRv9PaVnr2nEg3eem-St4vhYwojd3_axaVQSLlE7zvWsMTLeLpgERNJnkDB5uVgXzY781QNzpt3tyunulaTPJ--QdX7VBC7tSL2piaA6O
Django Version: 1.8.4
Exception Type: ValueError
Exception Value:    
Please specify a Facebook app id and ensure the context processor is enabled
Exception Location: /usr/local/lib/python2.7/dist-packages/django_facebook/views.py in connect, line 41
Python Executable:  /usr/bin/python
Python Version: 2.7.6
Python Path:    
['/home/webwerks/code/MyApp',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Server time:    Fri, 6 Nov 2015 06:52:09 +0000

codeg8 avatar Nov 06 '15 07:11 codeg8

I get this same error. I vaguely remember that when I first installed django_facebook, I got it to work for less than a millisecond--it showed my user name and uploaded image, but now I keep getting error above.

vmanamino avatar Nov 14 '15 06:11 vmanamino

Just to be clear, this is what I got:

''' ValueError at /facebook/connect/ Please specify a Facebook app id and ensure the context processor is enabled Request Method: POST Request URL: http://django-143500.nitrousapp.com:3000/facebook/connect/ Django Version: 1.8.6 Exception Type: ValueError Exception Value: Please specify a Facebook app id and ensure the context processor is enabled Exception Location: /home/nitrous/code/django-env/local/lib/python2.7/site- packages/django_facebook/views.py in connect, line 41 Python Executable: /home/nitrous/code/django-env/bin/python Python Version: 2.7.6 Python Path: ['/home/nitrous/code/myquizzes', '/home/nitrous/code/django-env/lib/python2.7', '/home/nitrous/code/django-env/lib/python2.7/plat-x86_64-linux-gnu', '/home/nitrous/code/django-env/lib/python2.7/lib-tk', '/home/nitrous/code/django-env/lib/python2.7/lib-old', '/home/nitrous/code/django-env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/nitrous/code/django-env/local/lib/python2.7/site-packages', '/home/nitrous/code/django-env/lib/python2.7/site-packages'] Server time: Sat, 14 Nov 2015 06:53:00 +0000 '''

vmanamino avatar Nov 14 '15 07:11 vmanamino

Please try using the master branch e.g. install via pip install git+git://github.com/tschellenbach/Django-facebook.git

jrabbit avatar Nov 17 '15 19:11 jrabbit