{ "id": "64153", "key": "TIMOB-3521", "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": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-16T16:31:47.000+0000", "created": "2011-04-15T03:46:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-30T04:59:27.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
\r\nThe facebook login button does not work when added to a\r\ntableView.
\r\nHowever if you add a click event listener to the tableview:
\r\n\r\nfbTableView.addEventListener('click', function(){});
\r\n
\r\nit works.
\r\nTest Code
\r\nTi.Facebook.appid = '111111111111111'; // must also be specified\r\nin tiapp.xml
\r\nTi.Facebook.permissions = ['publish_stream'];
var fbConnectButton = Ti.Facebook.createLoginButton({
\r\nstyle: 'normal'
\r\n
\r\n});
\r\nvar fbRow = Ti.UI.createTableViewRow({
\r\nselectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
\r\n
\r\n}); fbRow.add(fbConnectButton);
\r\nvar fbSection = Ti.UI.createTableViewSection({
\r\nheaderTitle: 'Facebook'
\r\n
\r\n}); fbSection.add(fbRow);
\r\nvar fbTableView = Ti.UI.createTableView({
\r\nstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED,\r\ndata: [fbSection]
\r\n
\r\n}); win1.add(fbTableView);
\r\nNot sure if this is a bug or a documentation issue.
\r\nTicket Reference: http://support-admin.appcelerator.com/display/FYA-29217-548