I wrote a small article on this subject as it seems it was not clearly explained anywhere. I found it easily done with django-rest-framework instead of tastypie though.
Here are the main steps used to authenticate (I’ll try to add a little schema to illustrate) :
- On the angular side, user authenticate on facebook with Oauth.io API (it could be directly with Facebook js API).
- Client gets a Facebook authentication token.
- FB token is used to ask for authentication on server side.
- python-social-auth authenticate with FB with the given token.
- django-rest-framework sends back to client a auth token for REST API calls.
- Angular client passes the token in headers when making API calls.
You can find my article here about facebook angularjs auth with a django rest backend