I always get the same error, if an user is registering for the first time:
"{"error":{"message":"Code was invalid or expired. Session is invalid. This could be because the application was uninstalled after the session was created.","type":"OAuthException","code":100}}"
After reloading the current page or at the next login with facebook, everything is working fine.
Comments
Comment #1
relaxy commentedFacebook access code generation seems to take a lot of time. A possible workaround for this problem could be:
Comment #2
relaxy commentedA slightly better approach:
Comment #3
relaxy commentedComment #4
quicksketchInteresting, I've never encountered this problem. I would think that Facebook would not return you a secret key until after it was ready to receive the response. The API is designed to immediately be queried for an access token after a secret key is provided, so I'm surprised we'd need to give Facebook time to accept the secret it just provided to us.
I'm supposing you've tried this solution and it has been successful, fixing the problem you encountered?
Comment #5
relaxy commentedThe problem was already discussed at: http://developers.facebook.com/bugs/419168608133421?browse=search_50eded...
I've tried the mentioned solution and it's working fine. The downside of this approach is a longer delay in case of the real error, cause the break; would never be triggered.