huuanh1987 / facebook-java-api

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

When a expired auth_token is passed via auth_getSession() to a FacebookJaxbRestClient, a ClassCastException : FacebookApiException #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. User is redirected to log in to facebook
2. A auth_token is created
3. User logs off, or otherwise devalues auth_token
4. auth_token is passed into getSession()

What is the expected output? What do you see instead?
An error, or FacebookException is expected.  Instead I get an internally
thrown FacebookApiException

What version of the product are you using? On what operating system?
Using version 2.02, linux.

Please provide any additional information below.

Original issue reported on code.google.com by luciano....@gmail.com on 16 Dec 2008 at 5:08

GoogleCodeExporter commented 8 years ago
Please provide sample code which I can make into a JUnit test. Alternatively, 
please
contribute a JUnit test :o)

I'm sure there's a programmatic way of devaluing auth_token, perhaps by 
automatically
opening a logoff URL at facebook.com. I can build the JUnit bit for this...

Original comment by david.j....@googlemail.com on 17 Dec 2008 at 9:08

GoogleCodeExporter commented 8 years ago
I've added Issue152UserLogoutTest which shows that the FacebookException gets 
thrown
as expected. Please use version 2.0.3.

Original comment by david.j....@googlemail.com on 21 Dec 2008 at 6:44