@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?
This has been flagged as spam show
hi
tj need help for the exception i m getting after this
FacebookClient fbApp = new FacebookClient(accesscodetoken);
JsonObject user = (JsonObject)FBApp.Get("/me")
EXCEP"oauthexception error validating application"
Please Help me :(
nicktrick9 1 month ago 2
Comment removed
nicktrick9 1 month ago
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 2 months ago
@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 2 months ago
@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...
FaveasyGuy 2 months ago
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..
FaveasyGuy 2 months ago
Cool man, Love this video to. Can i download the source somewhere?
romelior 2 months ago
@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 2 months ago
@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 2 months ago
@romelior
B.T.W. Thanks.
romelior 2 months ago
this is very interesting stuff! i love it! great video
BloodStone20 5 months ago
@atworkit I reuploaded this video. Thanks for pointing that out.
TJNevis 7 months ago