{ "id": "78731", "key": "TIMOB-4883", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-12-22T12:24:04.000+0000", "created": "2011-08-03T14:27:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "facebook" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:41.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When using CreateLoginButton of the facebook module some device running Android 2.2 and 2.3.3 have the login window stay blank.\r\n\r\nThis is a known Android problem that has fixes not included in the Ti module.\r\n\r\nproblem: https://github.com/facebook/facebook-android-sdk/issues/5 \r\n\r\nhttp://www.google.com/#sclient=psy&hl=en&source=hp&q=andorid+facebook+login+blank&pbx=1&oq=andorid+facebook+login+blank&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2085l2777l1l3088l5l4l0l0l0l0l287l985l0.1.3l4l0&bav=on.2,or.r_gc.r_pw.r_cp.&fp=e88d11602cf2fea7&biw=1429&bih=885\r\n\r\nSolution:\r\n\r\nhttp://myunixworld.blogspot.com/2010/11/android-facebook-sdk-issue-fix-for.html\r\n\r\nAdd following code to FbWebViewClient class in FbDialog.java file.\r\n{code}\r\n@Override\r\npublic void onReceivedSslError(WebView view, SslErrorHandler handler,\r\nSslError error) {\r\n\r\nhandler.proceed();\r\n}\r\n{code}\r\nThat mean your code would look like:\r\n{code}\r\nprivate class FbWebViewClient extends WebViewClient {\r\n@Override\r\npublic void onReceivedSslError(WebView view, SslErrorHandler handler,\r\nSslError error) {\r\n\r\nhandler.proceed();\r\n}\r\n{code}\r\n\r\nTicket and Fix provided by Moshe Marciano ", "attachment": [], "flagged": false, "summary": "Android: CreateLoginButton for Facebook opens blank window (fix included)", "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": "Android 2.2 and 2.3.3 devices", "comment": { "comments": [ { "id": "163666", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "All code submissions, no matter how small, require a [pull request and signing of the CLA|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium]. [CLA|http://appc.me/cla]", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-08-22T14:02:57.000+0000", "updated": "2011-08-22T14:05:46.000+0000" }, { "id": "163670", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looking at this further, we couldn't accept this code anyway, for a few reasons:\r\n\r\na) the {{onReceivedSslError}} api appears first in api level 8. Titanium builds to 7.\r\n\r\nb) More importantly, it seems to me that this code gives the user no say as to whether to investigate certificate error, and just accepts the certificate as-is. This would open up all users of our Facebook module to man-in-the-middle attacks.\r\n\r\nThis problem -- which I've never seen (though I can tell other people have) -- needs to be fixed upstream at Facebook. I'll proceed now by checking the last version of Facebook's code and see if they have a solution.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-08-22T14:22:40.000+0000", "updated": "2011-08-22T14:22:40.000+0000" }, { "id": "164073", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "A look at latest code from Facebook shows no difference that would affect this.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-08-25T15:55:55.000+0000", "updated": "2011-08-25T15:55:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }