[TIMOB-583] Facebook Connect login status should work without button instantiated
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:35.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M09 |
Components | iOS |
Labels | facebook, ios, release-1.6.0 |
Reporter | Ambert Ho |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:32:29.000+0000 |
Updated | 2011-04-17T01:53:35.000+0000 |
Description
Problem:
Ti.Facebook.loggedIn, and Ti.Facebook.isLoggedIn() return false
before a Connect button is instantiated.
Description:
It seems the Connect button must be instantiated to fire off the
login event that populates those fields.
This is not a major issue, but it does present a minor hiccup in the use case where a developer would like to determine if a user is logged into Connect to decide whether or not to show him the login button at the startup screen. In this use case, the Connect logout button would be placed on a separate tab.
Workaround:
Display the login button, then add an event listener for 'login' to
remove the button and continue with app startup.
Severity: minor
Fixed by the facebook module upgrade.