简体   繁体   中英

New #access_denied with Facebook Login (ASP.NET MVC)

I'm facing a strange problem with Facebook Login on my website. It's something completely new, Facebook login has always worked correctly and it's still working on my Android and iOS App.

I have a Link in the website like:

 http://myURL/api/Account/ExternalLogin?provider=Facebook&response_type=token&client_id=self&redirect_uri=http://myURL/Home/Register?

Obviously in developer.facebook.com I have everything set up like, in OAUTH ADDRESS I have:

 http://myURL
 http://myURL/Home/Register
 http://myURL/Home/Register?

And I have also my localhost (that worked correctly since a couple of days ago)

My App requires this access:

       var facebookAuthenticationOptions = new FacebookAuthenticationOptions()
        {
            AppId = "[Hidden For Security Reason]",
            AppSecret = "[Hidden For Security Reason]"
        };
        facebookAuthenticationOptions.Scope.Add("email");
        facebookAuthenticationOptions.Scope.Add("user_friends");
        facebookAuthenticationOptions.Scope.Add("user_birthday");
        app.UseFacebookAuthentication(facebookAuthenticationOptions);

My graph api version is v2.6

When I click the link, I get to facebook, I put my credentials in and it returns me to myURL#access_denied.

Does anybody have any clue?

Facebook did a "force upgrade" of their graph API from version 2.2 to 2.3 yesterday. But the issue and the fix are better explained here : ASP.NET MVC5 OWIN Facebook authentication suddenly not working

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM