Facebook

Development

Testing django's social-auth-login on localhost

Go to

https://developers.facebook.com/apps

"Create New App"

For site URL put (this is important)

http://127.0.0.1:8000/

In your settings_local.py put credentials that you got after registration:

FACEBOOK_APP_ID = 'xxxxxxxxx'
FACEBOOK_API_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Make sure that in your settings.py credentials correspond to real site and not localhost.

Relevant question on StackOverflow: http://stackoverflow.com/questions/7200046/is-it-possible-to-test-out-oauth-login-authentication-facebook-twitter-google

Adding Facebook app

https://developers.facebook.com/apps

http://facebook-python-library.docs-library.appspot.com/facebook-python/examples/oauth.html

Last edited by Artem Dudarev, 2013-10-13 02:01:37. Edit