Added: 7 months ago
From: TJNevis
Views: 2,393
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • good video, I am getting a 400 error on the line: Dim AccessTokenWebRequestStream As New StreamReader......

    any idea how to figure out what is wrong?

  • @FaveasyGuy There is nothing I hate more than getting code examples and they don't work, but with how fast technology changes, that seems to be what happens often.

    400 error: The Web server thinks that the data stream sent by the client was 'malformed' i.e. did not respect the H T T P protocol completely. So the Web server was unable to understand the request and process it.

    I know Facebook started requiring H T T P S, which could be the issue...can you successfully run other code?

  • @TJNevis Thanks for the quick response, I am new to "FB oauth", "json" the "webrequest object"...

    so I am just learning methods for debugging and working through errors.

    If there was way to mess it up I think i did it!

    I got through the "400" error because the "app Domain" was blank.

    I think I was getting some errors also because I was using localhost.

    After correcting that, I was getting 191 errors because my "redirect_uri:" did not matching.

    I was stuck on the 191 error, when I found...

  • an online suggestion to remove the app from your profile..

    I went into my privacy settings and removed the app from my profile, which i think is what fixed the 191 error.

    Now a Json error... the following lines work and write json data to the page.. Dim user = FBApp.Get("/me") Response.write(user)

    But when I try to use the line:

    lastName = user.last_name

    I get

    Public member 'last_name' on type 'JsonObject' not found.

    I am probably not using the right version of some library or something..

  • Cool man, Love this video to. Can i download the source somewhere?

  • @romelior Hey thanks! Yeah, the code can be downloaded by following the links when you expand the description (YouTube won't let me post links here)

  • @TJNevis

    No problem I understand. I write in C# and I am already able to do some gets on Facebook. I develop on Windows Azure and SQL Azure.

  • @romelior

    B.T.W. Thanks.

  • this is very interesting stuff! i love it! great video

  • @atworkit I reuploaded this video. Thanks for pointing that out.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more