代码之家  ›  专栏  ›  技术社区  ›  Hooman Bahreini

登录asp时拒绝访问。使用facebook身份验证的net MVC 5网站

  •  0
  • Hooman Bahreini  · 技术社区  · 8 年前

    我想登录到我的ASP。NET MVC应用程序使用facebook,并获取拒绝访问错误。以下是我所做的:

    我已经在:开发者上创建了一个应用程序。脸谱网。com,这是基本设置: enter image description here

    我没有更改任何高级设置。

    这是Facebook登录->设置(在产品下) enter image description here

    我的应用程序是默认的ASP。Net MVC 5网站上,我在启动时取消了facebook验证部分的注释。认证。反恐精英

    app.UseFacebookAuthentication(
               appId: ConfigurationManager.AppSettings["FacebookAppId"],
               appSecret: ConfigurationManager.AppSettings["FacebookAppSecret"]);
    

    当我进入登录页面时,它会将我重定向到facebook登录页面:

    enter image description here

    然后我被重定向回登录页面。。。数据库中没有注册用户。。。我知道我的数据库注册正在运行,因为用户可以使用谷歌以相同的过程登录。。。

    我在脸书的回复中被拒绝访问。

    1 回复  |  直到 8 年前
        1
  •  0
  •   Hooman Bahreini    8 年前

    我没有安装: 微软奥温。安全脸谱网

    推荐文章