2010-09-16 52 views
1

ASP.NET应用程序在Facebook上执行oAuth。直到几天前这个代码工作正常,现在突然抛出400错误。似乎无法找出原因 - 代码保持不变(使用SVN进行验证)。任何人都可以帮忙,可能是原因?来自ASP.NET应用程序的Facebook oAuth 400错误

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(); 
+0

我有一个iPhone应用程序和应用程序的WP7同样的问题。自从他们几天前停止工作以来,两人都工作得很好。其他调用(回顾用户信息,朋友列表,...)工作正常 - 但张贴到墙上失败。顺便说一句 - 如果我使用“GET”而不是“POST”,该调用仍然有效。 – ManniAT 2010-09-16 15:19:38

回答

3

号他们URLdecode BEFORE现在把它发回给你的回应。所以如果你已经在你的服务器上解码了它的双重解码,并且当你将它发送回Facebook时,它会抛出一个无效的令牌异常。

这真是糟糕的facebook。他们应该至少警告开发者。

相关问题