title: How to use Facebook Authentication in ASP.NET Web Api MVC 6?
body: <p>I found these:</p>
  
  <p><a href="https://docs.asp.net/en/latest/tutorials/first-web-api.html">First Web API</a></p>
  
  <p><a href="https://docs.asp.net/en/latest/security/authentication/sociallogins.html">Facebook on a WebApp</a></p>
  
  <p>I'm trying to apply the knowledge from the above samples into a Web API of my own.</p>
  
  <p>My clients will be Android and IOS native apps.</p>
  
  <p>The clients already use the Facebook sdk to request the token.</p>
  
  <p>But how can i use this token to authenticate my user?</p>
  
  <p>I would love some example.</p>
  
  <p>PS.: I use DNX Core dnxcore50 as framework.</p>
  
  <p>EDIT:</p>
  
  <p>I manage to use Facebook Authentication using the following: <a href="https://github.com/aspnet/Security/blob/dev/samples/SocialSample/Startup.cs">aspnet/Security/samples/SocialSample/Startup.cs</a></p>
  
  <p>But the Response is a HTML to Facebook... I don't think that's how the WebAPI should bahave...</p>
  
  <p>I think my question will be on this: <a href="https://docs.asp.net/en/latest/mobile/native-mobile-backend.html">Creating Backend Services for Native Mobile Applications</a></p>