{ "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\n

The facebook login button does not work when added to a\r\ntableView.

\r\n

However if you add a click event listener to the tableview:

\r\n
\r\nfbTableView.addEventListener('click', function(){});\r\n
\r\n

it works.

\r\n

Test Code

\r\n

Ti.Facebook.appid = '111111111111111'; // must also be specified\r\nin tiapp.xml
\r\nTi.Facebook.permissions = ['publish_stream'];

\r\n

var fbConnectButton = Ti.Facebook.createLoginButton({

\r\n
\r\nstyle: 'normal'\r\n
\r\n

});

\r\n

var fbRow = Ti.UI.createTableViewRow({

\r\n
\r\nselectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE\r\n
\r\n

}); fbRow.add(fbConnectButton);

\r\n

var fbSection = Ti.UI.createTableViewSection({

\r\n
\r\nheaderTitle: 'Facebook'\r\n
\r\n

}); fbSection.add(fbRow);

\r\n

var fbTableView = Ti.UI.createTableView({

\r\n
\r\nstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED,\r\ndata: [fbSection]\r\n
\r\n

}); win1.add(fbTableView);

\r\n

Not sure if this is a bug or a documentation issue.

\r\n

Ticket Reference: http://support-admin.appcelerator.com/display/FYA-29217-548

{html}", "attachment": [], "flagged": false, "summary": "iOS: Facebook Button in a TableView", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "158730", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am seeing this issue with android as well...", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T07:56:46.000+0000", "updated": "2011-07-06T07:56:46.000+0000" }, { "id": "169327", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8 and 1.7.X. This issue was fixed in 1.8, but is an issue with tableviews in 1.7.x.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-14T15:20:59.000+0000", "updated": "2011-10-14T15:20:59.000+0000" }, { "id": "195083", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Issue fixed with Release 2.0", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-16T15:13:18.000+0000", "updated": "2012-05-16T15:13:18.000+0000" }, { "id": "216970", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "closing.verified on:\r\nTested with Titanium SDK: 2.2.0.v20120828153312\r\nTested with Titanium Studio:2.1.2.201208281351", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-08-30T04:59:27.000+0000", "updated": "2012-08-30T04:59:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }