Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuthException Invalid Session Key #26

Closed
eldolor opened this issue Jun 12, 2010 · 8 comments
Closed

OAuthException Invalid Session Key #26

eldolor opened this issue Jun 12, 2010 · 8 comments

Comments

@eldolor
Copy link

eldolor commented Jun 12, 2010

I get an OAuthException right after I accept publish stream request from my application. Is this a new issue? I am using the latest facebook-android-sdk codebase.

Strangely enough, I am able to login using one of the ids that I use for testing. This id had allowed the publish stream request previously. I can't use any new test ids

Thanks

@Aaron80b
Copy link

I have been having some issues as well I'm starting to think it may be server side but FB for android is working fine so it may be an sdk issue? I had been away for a couple days and did a refresh of the sdk today...

@eldolor
Copy link
Author

eldolor commented Jun 13, 2010

I reverted back to the distro from facebook-facebook-android-sdk-7744431.zip (5/30/2010), and my application started working normally.

The odd thing that I noticed with the new codebase was that the only id that was able to login successfully was the owner of the corresponding Facebook application.

@soneff
Copy link

soneff commented Jun 14, 2010

Can you provide some more details to reproduce this problem? Is this in the simple example app? What application ID are you testing with? When exactly do you see the OAuthException? After the publish stream permission prompt (i.e. after logging in with the login button) or when trying to make a wall post?

@eldolor
Copy link
Author

eldolor commented Jun 14, 2010

The exception is displayed in the Web View as a JSON object string, containing the message "Invalid Session Key". I get this in my application "Wine Cellar" (App Id 125423214159200), right after I try to login.

@Aaron80b
Copy link

Mine was the same... I tried deleting and adding a new app to troubleshoot so I don't have the app id.

@soneff
Copy link

soneff commented Jun 14, 2010

@eldolor, I just tried your app ID with a test account and it seemed to work alright

do you see the login screen when you click on the login button (can you put in credentials and get a redirect to the permissions page?), or do you immediately get the OAuth exception?

One thing you could try would be to clear the app's local state (clear the saved access token and web view cookies):

e.g. put

try { mFacebook.logout(this); } catch (Exception e) { e.printStackTrace(); }

after SessionStore.restore(mFacebook, this); (Example.java: somewhere around line 73)

Let me know if that helps and we can try to work out a more robust solution.

@eldolor
Copy link
Author

eldolor commented Jun 15, 2010

I did see the login screen on clicking the Login button, and was able to enter my credentials. However, I was not able to get to the Permissions page, on account of the OAuth Exception.
I will be travelling for the next couple of weeks, and I will test the fix that you have suggested when I get back.

@yariv
Copy link

yariv commented Jun 30, 2010

This issue should be resolved by now. If you're still seeing problems, please reopen.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants