kriasoft / aspnet-starter-kit

Cross-platform web development with Visual Studio Code, C#, F#, JavaScript, ASP.NET Core, EF Core, React (ReactJS), Redux, Babel. Single-page application boilerplate.
https://twitter.com/dotnetreact
MIT License
1.16k stars 203 forks source link

Add [Login with Facebook] button #8

Open koistya opened 8 years ago

koistya commented 8 years ago
gobindaakhuli commented 8 years ago

//html


ID:
UserName:
Name:
Email:
/asp:Panel //database using ASPSnippets.FaceBookAPI; using System.Web.Script.Serialization; public class FaceBookUser { public string Id { get; set; } public string Name { get; set; } public string UserName { get; set; } public string PictureUrl { get; set; } public string Email { get; set; } } //authentic user using facebook account protected void Login(object sender, EventArgs e) { FaceBookConnect.Authorize("user_photos,email", Request.Url.AbsoluteUri.Split('?')[0]); }