{ "id": "159597", "key": "MOD-2242", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "17723", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-26T08:07:58.000+0000", "created": "2016-04-15T10:15:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "facebook", "ios", "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-07-11T18:30:44.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": "We should have the ability to change the login behavior (iOS and Android), some people currently get confused by the (default) browser login.", "attachment": [], "flagged": false, "summary": "Ti.Facebook: Support loginBehavior setting", "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": null, "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "382814", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Community PR: https://github.com/appcelerator-modules/ti.facebook/pull/46", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-15T10:16:00.000+0000", "updated": "2016-04-15T10:16:00.000+0000" }, { "id": "383428", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR to update docs and iOS default value because of [this issue|https://developers.facebook.com/bugs/786729821439894/?search_id]: https://github.com/appcelerator-modules/ti.facebook/pull/51\r\n \r\nTest steps:\r\n\r\n{code:javascript}\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 == false || e.cancelled) {\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}\r\n\r\nRun the project on iOS and Android using the latest Ti.Facebook versions (iOS: 5.2.0, Android: 5.1.0) with both Facebook-app installed and not installed.\r\n\r\nNot installed: App should open a web dialog to login\r\nInstalled: App should open the app on Android and web dialog on iOS (currently restricted by Facebook)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-20T22:35:24.000+0000", "updated": "2016-04-21T10:09:37.000+0000" }, { "id": "383756", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] remember to create a titanium_mobile PR with this new packaged Facebook module.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-25T02:36:35.000+0000", "updated": "2016-04-25T02:36:35.000+0000" }, { "id": "383766", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have [some more features|https://github.com/appcelerator-modules/ti.facebook/milestones/ios-5.2.0,%20android-5.1.0] I want to include in that release before. Trying to have all reviewed this week.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-25T06:56:44.000+0000", "updated": "2016-04-25T06:56:44.000+0000" }, { "id": "390348", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified fixed, tested both cases:\r\n\r\n*iOS*\r\nFacebook App Not Installed: Login page opened through web dialog.\r\nFacebook App Installed: Login page opened through web dialog (currently restricted by Facebook).\r\n\r\n*Android*\r\nFacebook App Not Installed: Login page opened through web dialog.\r\nFacebook App Installed: Login page opened through Facebook App.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nGoogle Nexus 6P (6.0.1)\r\nFacebook Module 5.2.0 (Android & iOS)\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160705213725\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.8-1\t\r\nApp CLI: 5.4.0-29\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-11T18:30:17.000+0000", "updated": "2016-07-11T18:30:17.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }