How to test Facebook login with localhost ?

1,794 views
Skip to first unread message

Fady Kamal

unread,
Apr 21, 2012, 6:19:48 PM4/21/12
to django-so...@googlegroups.com
i've installed the module successfully but i can't test it with localhost ,since facebook doesn't allow that

Matías Aguirre

unread,
Apr 21, 2012, 6:37:18 PM4/21/12
to django-social-auth
Excerpts from Fady Kamal's message of 2012-04-21 19:19:48 -0300:

> i've installed the module successfully but i can't test it with localhost
> ,since facebook doesn't allow that

You need to trick facebook, what I do is use myapp.com as the domain in the
facebook application configuration, and http://myapp.com as Site URL. Then in
my /etc/hosts I add the entry:

127.0.0.1 myapp.com

And then access the local server using http://myapp.com:8000

Makes sense?
Matías
--
Matías Aguirre (matias...@gmail.com)

Fady Kamal

unread,
Apr 23, 2012, 1:54:49 PM4/23/12
to django-so...@googlegroups.com
i've solved it using pagekites to make my localhost public then specified pagekite.me as the app domain in the facebook application
Reply all
Reply to author
Forward
0 new messages