Please sign in to comment.
Fixed setAccessExpiresIn method.
Summary: There are two types of access tokens: - ones that doesn't expire (expiresIn == 0) - ones that have some expiration period( (expiresIn > 0) When we receive a new token from FB server for both them we call the setAccessExpiresIn method. Because of that: 1. We shouldn't ignore the "0" value 2. We should also expect tokens that have long expiration period. For example 60 days is 2592000000000 miliseconds which is too much for an integer variable to handle :) Test Plan: Tried Login In / Logout for both types of tokens. Reviewers: jimbru, yariv Reviewed By: jimbru CC: kamil, jimbru Differential Revision: 370353
- Loading branch information...
Showing with 10 additions and 9 deletions.