MAXSTEELTURBOGO / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Websession failing on 104 error (Solved) #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. WebSession requesting friends.

What is the expected output? What do you see instead?
A list of friend Ids returned.  An error.

What version of the product are you using? On what operating system?
r309, Mac 10.5.7, Flex Builder

Please provide any additional information below.
I have an embedded Facebook app.  Running the app with a
DesktopSession ran fine.  Not so with the WebSession, it gave 104
errors, meaning the session signature is wrong (so the signature
Facebook computes is different from the signature the local app
computes).

I traced this to com.facebook.session.WebSession.post().
Remove the line:
addOptionalArguments();

The above method adds "ss=true" to the query URL.  Since this is (for
reasons I don't understand) not added to the signature hash on
Facebook's servers, the call fails.  Removing the method removes the
extra arguments, and then the call works. 

Original issue reported on code.google.com by dionjw on 28 Jul 2009 at 8:47

GoogleCodeExporter commented 9 years ago
New release based of Facebook's Graph API is coming soon.  SDK which this issue 
depends on is no longer supported by Facebook.

Original comment by alan...@gmail.com on 29 Sep 2010 at 7:49