parse-facebook-user-session icon indicating copy to clipboard operation
parse-facebook-user-session copied to clipboard

Getting "101 - invalid session"

Open theill opened this issue 10 years ago • 2 comments

I'm trying out this middleware but I'm always getting error code 101 - invalid session originating from line: https://github.com/ParsePlatform/parse-facebook-user-session/blob/master/parse-facebook-user-session.js#L136

The rest of the verbose output looks fine

I2015-06-07T21:23:34.402Z]Redirecting for Facebook OAuth.
I2015-06-07T21:23:35.106Z]Handling request callback for Facebook login...
I2015-06-07T21:23:35.310Z]Fetching user data from Facebook...
I2015-06-07T21:23:35.462Z]Logging into Parse with Facebook token...
I2015-06-07T21:23:36.024Z]Failed! {"code":101,"message":"invalid session"}

I'm using the "new" revocable sessions and am considering if this could be related?

theill avatar Jun 07 '15 21:06 theill

Can you add a logging statement to log the result of response.getSessionToken() ?

gfosco avatar Jun 09 '15 17:06 gfosco

To me the session token looks right .. this is what I get when I print out response.getSessionToken()

I2015-06-09T22:25:17.426Z]Handling request callback for Facebook login...
I2015-06-09T22:25:17.427Z]Fetching access token...
I2015-06-09T22:25:17.528Z]Fetching user data from Facebook...
I2015-06-09T22:25:17.631Z]Logging into Parse with Facebook token...
I2015-06-09T22:25:18.038Z]Becoming Parse user r:762ODEIYSTAUlDaS04rFeTDly...
I2015-06-09T22:25:18.091Z]Failed! {"code":101,"message":"invalid session"}

theill avatar Jun 09 '15 22:06 theill