[Django]-Testing Django Facebook App

4👍

You can use Test Users:
http://developers.facebook.com/docs/test_users/

I think the access token never expires, or at less until you delete the Test User.

-1👍

Well, I understand it’s also possible to authenticate fully server side, using just OAuth without Javascript SDK. In that case you should be able to aquire a valid token yourself. There are, I think some libraries that can be used for that like:

http://pypi.python.org/pypi/django-social-auth/

However please note, I’ve never done this myself so it’s more of a suggestion, than a definite answer.

EDIT

It seems like social-auth has some testing functionality that is capable of automatically signing in to a facebook account. You could probably copy the code from there.

👤julx

Leave a comment