1
我開發了一個簡單的ASP.NET應用程序,它工作正常,但現在我無法獲取用戶信息;我得到這個消息:FB連接:(417)期望失敗
The remote server returned an error: (417) Expectation failed.
,這裏是我使用的代碼:
Dim FBUser As Facebook.Schema.user = Nothing
Dim connectSession As Facebook.Session.ConnectSession
Dim FBApi As Api
connectSession = New Facebook.Session.ConnectSession(ConfigurationManager.AppSettings("AppKey"), ConfigurationManager.AppSettings("AppSecret"))
If connectSession.IsConnected() Then
FBApi = New Api(connectSession)
Try
FBUser = FBApi.Users.GetInfo()
'' do some work
Catch ex As Exception
FBUser = Nothing
'' other work
End Try
End If
這實在是令人困惑,因爲它只是工作罰款2個星期了!
感謝
這可能與您在代理後面測試應用程序有關。 – 2012-06-10 15:34:25
也許我當時是在我的ISP設置的透明代理之後,但我無法確認它! – FearUs 2012-10-15 20:12:40