Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-583] Facebook Connect login status should work without button instantiated

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M09
ComponentsiOS
Labelsfacebook, ios, release-1.6.0
ReporterAmbert Ho
AssigneeReggie Seagraves
Created2011-04-15T02:32:29.000+0000
Updated2011-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

Comments

  1. Stephen Tramer 2011-04-15

    Fixed by the facebook module upgrade.

JSON Source