4

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?

Ziba Leah
  • 2,484
  • 7
  • 41
  • 60

1 Answers1

6

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

Community
  • 1
  • 1
Daniel Moniry
  • 86
  • 1
  • 2
  • Yes, it is the change from String to JSON. See here https://developers.facebook.com/docs/apps/changelog (Changes from v2.2 to v2.3 / [Oauth Access Token] Format) – Norbert Mar 28 '17 at 14:09