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

Invalid session due to no expiration date #40

Closed
nickbabenko opened this issue Sep 9, 2010 · 5 comments
Closed

Invalid session due to no expiration date #40

nickbabenko opened this issue Sep 9, 2010 · 5 comments

Comments

@nickbabenko
Copy link

A request made to https://graph.facebook.com/oauth/authorize wasn't returning any expires_in parameter, which resulted in expirationDate being nil and the isSessionValid method returning false.

This caused all of my calling methods to fail.
I couldn't work out if this was an issue with Facebook or the SDK.

@leddo
Copy link

leddo commented Sep 9, 2010

Yep, I've got the same issue today too.... I even went to my facebook account, deleted the app from the profile, and then tried it again. After accepting the requested permissions, I still get a nill returned for expirationDate in
(void)fbDialogLogin:(NSString *)token expirationDate:(NSDate *)expirationDate

Strange as I have been using this OK for a few weeks now without any major issues.

Chris

@nickbabenko
Copy link
Author

Must be an issue with the Facebook API, I couldn't actually find any documentation of an expiration date being returned. It may also be due to the offline_access permission being request, no expiration being sent instead of zero.

For a temporary fix, I set expirationDate like:
NSDate *expirationDate = [NSDate distantFuture];

in - (void) dialogDidSucceed:(NSURL*)url - FBLoginDialog.h and commented out the rest of the expirationDate set.

@leddo
Copy link

leddo commented Sep 9, 2010

yep, and we are not alone: Seems like they have screwed something up and is causing issues for lots of people.
http://stackoverflow.com/questions/3675311/cant-get-user-info-from-facebook-w-oauth-2-0-for-iphone

@lshepard
Copy link
Contributor

lshepard commented Sep 9, 2010

Thanks for the reports, we're working on this now.

@AlessioDiCienzo
Copy link

Hi!
Today this issue appears to me too, I've followed the instructions by nickbabenko in a previous comment, but it seems that it doesn't work for me.
I'm continuing to have the message:
"error The operation couldn’t be completed. (facebookErrDomain error 10000.)"

Is there another way to fix this? Because I can't go on with the developing of my app.
Thanks!

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