{ "id": "165116", "key": "MOD-2318", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17610", "name": "Release 6.1.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-10T08:40:02.000+0000", "created": "2016-12-23T20:20:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49: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": "14521", "name": "Facebook" } ], "description": "- Update Facebook iOS-SDK to 4.18.0\r\n- Fix some doc errors\r\n- Expose {{appID}} and {{currentAccessToken}}", "attachment": [], "flagged": false, "summary": "iOS: Update Facebook iOS-SDK to 4.18.0, fix docs, add new methods", "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, "comment": { "comments": [ { "id": "403853", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (ti.facebook): https://github.com/appcelerator-modules/ti.facebook/pull/80\r\nPR (titanium_mobile): https://github.com/appcelerator/titanium_mobile/pull/8735", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-23T20:22:45.000+0000", "updated": "2017-01-10T09:01:11.000+0000" }, { "id": "420299", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] Can you please provide test cases for this ticket?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-23T22:15:21.000+0000", "updated": "2017-05-23T22:15:21.000+0000" }, { "id": "420502", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test-Case:\r\n{code:js}\r\nvar fb = require('facebook');\r\n\r\nvar appID = '517802691665259';\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'Set App-ID and Access-Token'\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n fb.setAppID(appID);\r\n \r\n fb.setCurrentAccessToken({\r\n accessToken: 'my-new-token',\r\n permissions: ['email'],\r\n appID: appID,\r\n userID: 'hansknoechel'\r\n });\r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\nExpected result: The app does not crash and no error-log is shown. The access-token in this example is invalid and *can* be replaced by a real access-token that may be generated using the Facebook API-Explorer. I do not think it is necessary for this case, since the handling is done internally by Facebook and we don't intercept there, so validating against \"no crash\" will be fine for this case. Special note: Testing in the Simulator will show the {{Falling back to storing access token in NSUserDefaults because of simulator bug}} warning, indicating an Sim-Issue of iOS itself that is logged by the Facebook SDK. This is nothing specific to this PR or Titanium in general.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-26T13:59:52.000+0000", "updated": "2017-05-26T13:59:52.000+0000" }, { "id": "440173", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:27.000+0000", "updated": "2018-08-06T17:49:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }