{ "id": "162818", "key": "TIMOB-23825", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-08-27T12:42:37.000+0000", "created": "2016-08-25T13:53:41.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:57:47.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": [], "description": "Hello,\r\nFacebook logout is not working for iOS on following Environment:\r\nSDK: 5.4.0 GA\r\nAppcelerator Command-Line Interface, version 5.4.0\r\nfacebook module Version: 5.2\r\n\r\n*Test Case:*\r\n{code}\r\nvar fb = require('facebook');\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'Login/Logout',\r\n\tbackgroundColor : '#fff',\r\n \r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext : 'Logged In = ' + fb.loggedIn,\r\n\tcolor : '#000',\r\n\tfont : {\r\n\t\tfontSize : 20\r\n\t},\r\n\ttop : 10,\r\n\ttextAlign : 'center'\r\n});\r\nwin.add(label);\r\nfb.addEventListener('login', function(e) {\r\n\tif (e.success) {\r\n\t\talert('login from uid: ' + e.uid + ', name: ' + JSON.parse(e.data).name);\r\n\t\tlabel.text = 'Logged In = ' + fb.loggedIn;\r\n\t} else if (e.cancelled) {\r\n\t\t// user cancelled\r\n\t\talert('cancelled');\r\n\t} else {\r\n\t\talert(e.error);\r\n\t}\r\n});\r\nfb.initialize();\r\nfb.addEventListener('logout', function(e) {\r\n\talert('logged out');\r\n\tlabel.text = 'Logged In = ' + fb.loggedIn;\r\n});\r\nvar loginButton = fb.createLoginButton({\r\n\treadPermissions : ['email'],\r\n\ttop : 100,\r\n\twidth : 150,\r\n\theight : 100\r\n});\r\nwin.add(loginButton);\r\n\r\nwin.open();\r\n{code}\r\n*Step to reproduce:*\r\n1)Starts the app, click facebook login \r\n2)it redirects to safari, asks for your fb username and password \r\n3)after logging in, logs in the app with fb data \r\n4)Tried to log out, it will trigger Facebook.logout(); \r\n5)Repeat step 1 and 2. but this time it wont ask for your username and password, as you already logged into safari. In this case i can't switch to another fb account", "attachment": [], "flagged": false, "summary": "Facebook logout is not working for iOS", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "394560", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "See TIMOB-14551 for details on how to clear the cookies using the {{Ti.Network.HTTPClient}} API. Once again: Facebook does not allow to clear the web-cookies in the *native* logout, since it are two different kind of authorizations (app-based and global). If people want to clear it manually anyway, check the provided API :-)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-27T12:48:06.000+0000", "updated": "2016-08-27T12:48:06.000+0000" }, { "id": "415718", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:57:47.000+0000", "updated": "2017-03-24T18:57:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }