title: Django REST Backend for mobile app with Facebook login
body: <p>I have to implement a REST backend for mobile applications.</p>
  
  <p>I will have to use Django REST Framework.</p>
  
  <p>Among the features that I need to implement there will be the registration user and login.</p>
  
  <p>Through the mobile application the user can create an account using ONLY the Facebook login. </p>
  
  <p>Then, the application will take the information from Facebook using the token-facebook and it will send this data to my server.</p>
  
  <p>I tried using python_social about Facebook authentication and user registration using the Facebook token. </p>
  
  <p>At this point I have doubts:</p>
  
  <p>think there could be two choices:</p>
  
  <p><strong>1:</strong></p>
  
  <p>The mobile application use the Facebook-login to retrieve user data and will send a request to my server to create a new user with the Facebook data user and passing the Facebook-token.</p>
  
  <p>In this case, in the server side, it will not be integrated python_social and facebook-token is a simple profile field.</p>
  
  <p>Doubts: how can you implement the next login (which password Is necessary to use?)</p>
  
  <p><strong>2:</strong></p>
  
  <p>The second possibility is to use python_social. In this way there are no problems for subsequent logins. The token Facebook will be used to retrieve the data (and validate the user) by calling: <code>do_auth</code></p>
  
  <p>But in this case, for each user, the server will have to make a request to Facebbok (which actually is possible to avoid: the mobile application has already recovered all the data)</p>
  
  <p>What is the best case? What do you usually use for authentication backend rest with Facebook?</p>