{ "id": "159715", "key": "MOD-2247", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-04-20T12:49:49.000+0000", "created": "2016-04-20T07:16:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "facebook", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-20T12:49:55.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": "14521", "name": "Facebook" } ], "description": "The current default behavior - logging into Facebook using the Facebook app - doesn't seem to work anymore.\r\n\r\nReproduce:\r\n{code:xml|tiapp.xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\tCFBundleURLTypes\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tCFBundleURLName\r\n\t\t\t\t\tcom.appc.test\r\n\t\t\t\t\tCFBundleURLSchemes\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tapp_slug\r\n\t\t\t\t\t\tfb\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tFacebookAppID\r\n\t\t\t\r\n\t\t\tFacebookDisplayName\r\n\t\t\tSomeName\r\n\t\t\tLSApplicationQueriesSchemes\r\n\t\t\t\r\n\t\t\t\tfbapi\r\n\t\t\t\tfbapi20130214\r\n\t\t\t\tfbapi20130410\r\n\t\t\t\tfbapi20130702\r\n\t\t\t\tfbapi20131010\r\n\t\t\t\tfbapi20131219 \r\n\t\t\t\tfbapi20140410\r\n\t\t\t\tfbapi20140116\r\n\t\t\t\tfbapi20150313\r\n\t\t\t\tfbapi20150629\r\n\t\t\t\tfbauth\r\n\t\t\t\tfbauth2\r\n\t\t\t\tfb-messenger-api20140430\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n{code:javascript|app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#fff\"\r\n}); \r\nvar btn = Ti.UI.createButton({\r\n title : \"Login with Facebook\"\r\n});\r\nvar fb = require('facebook');\r\nfb.initialize();\r\n\r\nfb.addEventListener(\"login\", function(e) {\r\n Ti.API.warn(e);\r\n if(!e.success) {\r\n return;\r\n }\r\n alert(\"loggedin\");\r\n})\r\n\r\nbtn.addEventListener(\"click\", function() { \r\n fb.permissions = ['email'];\r\n fb.authorize();\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.Facebook iOS: Native login not working", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti.SDK: 5.2.x / 5.4.0\r\nTi.Facebook: 5.1.0 / 5.2.0\r\niOS 9", "comment": { "comments": [ { "id": "383260", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Going to need more details. Need to know if this is a regression or not.\r\nWhat's the Ti SDK, xCode and Facebook modules version.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T07:23:43.000+0000", "updated": "2016-04-20T07:23:43.000+0000" }, { "id": "383327", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Details provided above. Also create a native application following the Facebook docs best practice: https://www.dropbox.com/s/covkst64flicd9x/test.zip?dl=0\r\n\r\nIt behaves the same, so either we are missing something or the native app-switch is currently broken in the Facebook SDK.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T12:29:24.000+0000", "updated": "2016-04-20T12:29:24.000+0000" }, { "id": "383332", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As discussed in this thread, it seems like Facebook wants to use the Safari Dialog (\"browser\") behavior by default, even when we set the {{fb.LOGIN_BEHAVIOR_NATIVE}} which was exposed in MOD-2242. So it's a Facebook \"issue\" which is being looked into on their side. For now, we can close this issue and leave it for further reference.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T12:48:52.000+0000", "updated": "2016-04-20T12:48:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }