locked
Facebook oAuth in asp.net Webform RRS feed

Answers

  • User-734925760 posted

    Hi,

    According to your description, you want to login website via FaceBook. So far as I know, you need to open the _AppStart.cshtml page and uncomment the code for the Facebook OAuth provider using the code below:

    OAuthWebSecurity.RegisterFacebookClient(
            appId: "",
            appSecret: "");

    There is a document about how to Logging In Using External Sites in an ASP.NET Web Pages (Razor) Site, please refer to the steps from the link below:

    http://www.asp.net/web-pages/overview/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 2, 2015 2:26 AM

All replies

  • User1574594062 posted

    Did you analyze the HTTP trace in fiddler and see what is going on ?

    Friday, January 2, 2015 1:10 AM
  • User-734925760 posted

    Hi,

    According to your description, you want to login website via FaceBook. So far as I know, you need to open the _AppStart.cshtml page and uncomment the code for the Facebook OAuth provider using the code below:

    OAuthWebSecurity.RegisterFacebookClient(
            appId: "",
            appSecret: "");

    There is a document about how to Logging In Using External Sites in an ASP.NET Web Pages (Razor) Site, please refer to the steps from the link below:

    http://www.asp.net/web-pages/overview/security/enabling-login-from-external-sites-in-an-aspnet-web-pages-site

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 2, 2015 2:26 AM