Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Django Facebook App

I'm making a Django app with Fandjango and I'm trying to unit test it with Django's test framework. The only thing is, in order to test effectively I need a "signed_request" parameter that Facebook sends with every request. Right now I'm logging the requests my server gets from Facebook and copying + pasting the signed_request token I get, but that only works for a few hours at a time.

Is there a simple way to handle this without doing a mock of the whole Facebook API?

Thanks!

like image 481
Charles Offenbacher Avatar asked Dec 12 '25 10:12

Charles Offenbacher


1 Answers

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.

like image 107
Carlos Javier Avatar answered Dec 14 '25 00:12

Carlos Javier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!