{ "id": "132337", "key": "AC-1648", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-07-21T17:06:52.000+0000", "created": "2014-06-27T08:05:50.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:38:08.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nAccording to application requirements , we are getting access token using facebook.authorize() after posting one picture to user wall and then sending that token to our web server to get more details about that post (like count , comments count) at later.\r\n\r\nIf we call facebook.logout() from our application that token is getting expired/invalid and we are not able to use that any more.\r\n\r\nSame thing is working fine with IOS , even after facebook.logout() token remain active.\r\n\r\nBefore logout we tried to get long expired token and we are getting that successfully but after logout that new token also become expired/invalid.\r\n\r\nWe needs to use faceboo.logout() because we need more than one user to share same photo using different account .. application is like KIOSK app where user came and go and they share photo with their account.\r\n\r\nPlease please help to solve this , again everything working fine with IOS\r\n\r\nRegards,\r\nAnis", "attachment": [ { "id": "49331", "filename": "Screen Shot 2014-06-27 at 5.40.34 pm.png", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-27T12:12:53.000+0000", "size": 144959, "mimeType": "image/png" } ], "flagged": false, "summary": "Android facebook.logout() is result in token expiration", "creator": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium sdk : 3.2.3 GA , Facebook android module 3.0.2", "comment": { "comments": [ { "id": "311253", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nWould you please update your Facebook module to 3.1.0, there is the doc http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-27T10:42:18.000+0000", "updated": "2014-06-27T10:42:18.000+0000" }, { "id": "311259", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello Shuo,\r\n\r\nSurly but can you tell me how to update that ? .. I already tried with titanium update check and nothing is found.\r\n\r\nRegards,\r\nAnis", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-27T12:02:01.000+0000", "updated": "2014-06-27T12:02:01.000+0000" }, { "id": "311260", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello,\r\n\r\nI think 3.1.0 is only for IOS not for android , as I can see that my IOS module is set to 3.1.0 and android to 3.0.2.\r\n\r\nRegards,\r\nAnis", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-27T12:03:32.000+0000", "updated": "2014-06-27T12:03:32.000+0000" }, { "id": "311261", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Here is screen shot for settings and module version available", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-27T12:12:53.000+0000", "updated": "2014-06-27T12:12:53.000+0000" }, { "id": "311546", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello Shao,\r\n\r\nPlease have some words for our problem , your help is highly appreciated.\r\n\r\nBecause of this issue we are not able to roll-out our application to market.\r\n\r\nRegards,\r\nAnis\r\n", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-30T05:53:50.000+0000", "updated": "2014-06-30T05:53:50.000+0000" }, { "id": "311561", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nJust to be clarified, the token you mentioned is one you get from method getAccessToken, right?\r\nAnd also the AccessToken should be cleared after logout method.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-30T06:47:31.000+0000", "updated": "2014-06-30T06:47:31.000+0000" }, { "id": "311563", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello,\r\n\r\nYes I am getting that using getAccessToken.\r\n\r\nSorry I am not getting meaning for \"clear after logout method\" , seems that you didn't understand my problem.\r\n\r\nI am sending that AccessToken to my server (web server) and then logout from application. At later-date I am using that access token from web server to get like,comment count of that post.\r\n\r\nNow that thing is working fine in IOS , I sent token to web server and called logout method from application and still that token is valid and can access details using that token.\r\n\r\nBut in Android after logout from application , token get expired and could not use that anymore.\r\n\r\nPlease advice.\r\n\r\nRegards,\r\nAnis\r\n", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-30T06:54:12.000+0000", "updated": "2014-06-30T06:54:12.000+0000" }, { "id": "311566", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nSeems something wrong with IOS accessToken, the accessToken should be invalid after you call logout method. In other word, the accessToken should only valid when that use is in login status. Android's reaction is correct. \r\n\r\nRegards,\r\nShuo ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-30T06:59:19.000+0000", "updated": "2014-06-30T06:59:19.000+0000" }, { "id": "311568", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello Shuo,\r\n\r\nOh that's bad , so what is solution of this.\r\n\r\nWants to have that token for offline use , as my application is sort of kiosk application where user came and share photo using facebook.\r\n\r\nSo I should logout previous user from application to allow second user to share same photo , and needs to have access token for building reports of that share.\r\n\r\nPlease suggest some way to achieve that.\r\n\r\nRegards,\r\nAnis", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-30T07:06:44.000+0000", "updated": "2014-06-30T07:06:44.000+0000" }, { "id": "311579", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi, \r\n\r\nHere maybe a useful doc to achieve. \r\n\r\nExtending Page Access Tokens, from https://developers.facebook.com/docs/facebook-login/access-tokens/.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-30T07:36:46.000+0000", "updated": "2014-06-30T07:36:46.000+0000" }, { "id": "314894", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\n\r\ndid the last comment help you?\r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-18T22:17:17.000+0000", "updated": "2014-07-18T22:17:17.000+0000" }, { "id": "315000", "author": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello Mauro,\r\n\r\nYes , that help.. we dropped idea of using user token and now using application token to get required post details.\r\n\r\nThanks lots for your help\r\n\r\nRegards,\r\nAnis", "updateAuthor": { "name": "anisvora", "key": "anisvora", "displayName": "Anis Vora", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-21T09:03:01.000+0000", "updated": "2014-07-21T09:03:01.000+0000" }, { "id": "315056", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "The customer implemented the alternative we suggested. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-21T17:06:52.000+0000", "updated": "2014-07-21T17:06:52.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }