Re-request facebook details, if User denies scope ("manage_page") using Startup.cs in ASP.NET Core


Hi, 

Facebook docs give this javascript code as shown below for oAuth login re-request

FB.login( 
    function(response) 
    { 
         console.log(response); 
    }, { scope: 'email', auth_type: 'rerequest' }
);

Is it possible to implement above functionality in my Startup.cs file of asp.net core project, instead?

app.UseFacebookAuthentication(new FacebookOptions 
      { AppId = "***", AppSecret = "***", Events = new OAuthEvents { OnRemoteFailure = context => { context.HandleResponse();
   context.Response.Redirect("/Account/Login"); 
    return Task.FromResult(0);
    }
   } 
 });

Thanks


Asked by:- LuneAgile
0
: 1688 At:- 12/19/2018 8:51:16 PM
ASP.NET Asp.net-core









Login/Register to answer
Or
Post answer directly by entering your email-id & Name

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use