Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationFacebook Authentication Error error=access_denied error_code=200Facebook Authentication Error error=access_denied error_code=200
Previous
 
Next
New Post
4/2/2017 9:32 PM
 

Is anyone experiencing recent problems with Facebook Authentication?

Several days ago FB Authentication started failing on my DNN website with no recent code changes being made.

The error appears to occur when the user is redirected to https://www.facebook.com/login.php?skip_api_login.... which contains "error=access_denied error_code=200"

My codebase is DNN v6 however in comparing the Authentication Provider source with the most recent DNN release (9) there appears to be no relevant code change made. 

In running a trace I see the code makes a server call to https://graph.facebook.com/oauth/access_token?...........
It makes a subsequent call to:  https://graph.facebook.com/oauth/authorize?scope=email&client_id=xxxxxxxxxxx&redirect_uri=https%3A%2F%2Fwww.mysite.com%2FLogin&state=Facebook&response_type=code

The client browser is then redirected to the facebook login page (the fb login page it is missing the details about what data is being requested) and the url contains the following  error=access_denied&error_code=200&error_description=Permissions error&error_reason=user_denied

If the user proceeds with the facebook login and is returned to the website they are not authenticated

The full URL Details are:

https://www.facebook.com/login.php?skip_api_login=1&api_key=xxxxxxxxxxxx&signed_next=1&next=https%3A%2F%2Fwww.facebook.com%2Fv2.5%2Fdialog%2Foauth%3Fredirect_uri%3Dhttps%3A%2F%2Fwww.mysite.com%2FLogin
&state=Facebook&scope=email&response_type=code&client_id=xxxxxxxxx&ret=login&logger_id=xxxxxxxxxxxxx6
&cancel_url=https%3A%2F%2Fwww.mysite.com%2FLogin%3Ferror%3Daccess_denied&error_code=200&error_description=Permissions
error&error_reason=user_denied&state=Facebook#_=_&display=page&locale=en_US&logger_id=xxxxxxxxxxxxxxxxxxxxxxxx

I have spent several days attempting to resolve this problem. Any suggestion are much appreciated,

Les.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationFacebook Authentication Error error=access_denied error_code=200Facebook Authentication Error error=access_denied error_code=200


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out