{ "id": "119743", "key": "TIMOB-15112", "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": [ { "id": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16093", "description": "2014 Sprint 08 SDK", "name": "2014 Sprint 08 SDK", "archived": true, "released": true, "releaseDate": "2014-04-24" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-04-21T20:31:34.000+0000", "created": "2013-09-10T10:25:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T18:18:10.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Description\r\nAfter the Facebook module logout function is called and then after when try to login again it shows up with screen saying that 'You have already authorized app' though it should show login screen again.\r\n\r\nh2. Test Case\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar fb = require('facebook');\r\nfb.appid = '';\r\nfb.permissions = ['read_friendlists','read_requests','read_stream'];\r\nfb.addEventListener('login', function(e) {\r\n if (e.success) {\r\n alert('Logged in');\r\n }\r\n});\r\nfb.addEventListener('logout', function(e) {\r\n alert('Logged out');\r\n alert('Is logged in : '+fb.loggedIn);\r\n});\r\n \r\nwin.add(fb.createLoginButton({\r\n top : 50,\r\n style : fb.BUTTON_STYLE_WIDE\r\n}));\r\nvar logoutbutton=Ti.UI.createButton({\r\n\ttitle:'LogOut'\r\n});\r\nlogoutbutton.addEventListener('click',function(){\r\n\tfb.logout();\r\n\t\r\n});\r\nwin.add(logoutbutton);\r\nwin.open()\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Facebook module logout function does not log out user properly", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone simulator : iOS6\r\niPhone 4 : iOS6", "comment": { "comments": [ { "id": "272646", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "This is standard behavior on iOS: if the user entered her credentials (in the iOS settings, or in the FB app, or in the web login where a cookie is saved), the module will attempt login with that user. Try it with other FB apps on iOS and you will see similar behavior. This is why FB recommends that your mobile UI clearly shows who is the user logging in.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-24T12:23:02.000+0000", "updated": "2013-09-24T12:23:02.000+0000" }, { "id": "301940", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is the expected behavior, the facebook SDK caches the login for a period of time, so even if you logout and try logging back in it would use the cached login response for logging in again. \r\n\r\nMarking ticket as won't fix. \r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T20:31:24.000+0000", "updated": "2014-04-21T20:31:24.000+0000" }, { "id": "414855", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:18:10.000+0000", "updated": "2017-03-22T18:18:10.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }