Tridip Bhattacharjee

Tridip Bhattacharjee

  • 975
  • 1.2k
  • 40.4k

ASP.Net MVC: facebook logged in user's email is not coming

Apr 19 2018 9:21 AM
i am using mvc 5. when i log in to facebook then i am redirect to page called ExternalLoginCallback there a textbox comes where i ask to put user email but i believe i should get fb logged in user's email automatically but nothing such coming. here is screen shot

i just add these line of code for facebook auth.

app.UseFacebookAuthentication(new FacebookAuthenticationOptions()
AppId = "222222222222222222",
AppSecret = "sssssssssssssssssss",
Scope = { "email" },
Fields = { "name", "email" }

anyone can tell me what kind of mistake i have made for which email is not coming in my case.

looking for a help. thanks

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.