FB Connect: (417) Expectation failed

Posted by FearUs on Stack Overflow See other posts from Stack Overflow or by FearUs
Published on 2010-03-18T09:04:00Z Indexed on 2010/04/03 18:43 UTC
Read the original article Hit count: 308

Hi,

I developed a simple ASP.NET app, it was working fine, but now I can't get user info; I am getting this message:


The remote server returned an error: (417) Expectation failed.


and here's the code I'm using:

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

This is really confusing, because it was just working fine for 2 weeks now !!

Thanks

© Stack Overflow or respective owner

Related posts about facebook-connect

Related posts about ASP.NET