{ "id": "61215", "key": "TIMOB-583", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11242", "name": "Release 1.6.0 M09", "archived": true, "released": true, "releaseDate": "2011-02-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:35.000+0000", "created": "2011-04-15T02:32:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "facebook", "ios", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:35.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Problem:
\nTi.Facebook.loggedIn, and Ti.Facebook.isLoggedIn() return false\nbefore a Connect button is instantiated.

\n

Description:
\nIt seems the Connect button must be instantiated to fire off the\nlogin event that populates those fields.

\n

This is not a major issue, but it does present a minor hiccup in\nthe use case where a developer would like to determine if a user is\nlogged into Connect to decide whether or not to show him the login\nbutton at the startup screen. In this use case, the Connect logout\nbutton would be placed on a separate tab.

\n

Workaround:
\nDisplay the login button, then add an event listener for 'login' to\nremove the button and continue with app startup.

\n

Severity: minor

{html}", "attachment": [], "flagged": false, "summary": "Facebook Connect login status should work without button instantiated", "creator": { "name": "ambertho", "key": "ambertho", "displayName": "Ambert Ho", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ambertho", "key": "ambertho", "displayName": "Ambert Ho", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123616", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixed by the facebook module upgrade.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:30.000+0000", "updated": "2011-04-15T02:32:30.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }