views:

89

answers:

2

ASP.NET application performing oAuth with Facebook. This code was working fine until a few days ago and now suddenly throws 400 errors. Cannot seem to find out why - the code has remained unchanged (verified using SVN). Can anyone help with might be the cause?

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (400) Bad Request.

Source Error:

Line 231:        {
Line 232:                        
Line 233:            webRequest.GetResponse().GetResponseStream().Close();           
Line 234:            
Line 235:            responseReader.Close();
A: 

Closing it down.

Mikos
A: 

No. They URLdecode the response BEFORE sending it back to you now. So if you were already decoding it at your server its double decoded and when you send it back to Facebook it throws an invalid token exception.

This was really shitty of facebook. They should have atleast warned the developers.

Ganesh Krishnan

related questions