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
Comments
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... |
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. |
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? |
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. |
Mine was the same... I tried deleting and adding a new app to troubleshoot so I don't have the app id. |
@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. |
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. |
This issue should be resolved by now. If you're still seeing problems, please reopen. |
Update Facebook iOS to 4.16.1
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
The text was updated successfully, but these errors were encountered: