Handle refreshing profile image with expired OAuth token
Summary:
If OAuth token is expired then refreshing profile image doesn't work.
This diffs solves it this way:
- Hide Refresh Profile Image button with expired token.
- Display Refresh Token with expired token.
- Update token after logging-in.
Test Plan:
Wait until token expires.
/settings/page/facebook/ - no Refresh Profile Image button.
Refresh Token.
Refresh Profile Image.
Reviewers: epriestley, jungejason
Reviewed By: epriestley
CC: michalburger1, aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2281