[AC-2061] [iOS] Facebook logout
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-03-04T20:17:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | n/a |
Reporter | Tommy Leung |
Assignee | Mauro Parra-Miranda |
Created | 2013-02-27T18:18:30.000+0000 |
Updated | 2016-03-08T07:41:01.000+0000 |
Description
Calling Ti.Facebook.logout causes an error "FBSession: should only be used from a single thread".
Since the "startup" function is running on the main thread, the "logout" function should be called on the main thread as well by using "TiThreadPerformOnMainThread", in this file: https://github.com/appcelerator/titanium_modules/blob/master/facebook/mobile/ios/Classes/FacebookModule.m
This is probably quite important as the logout functionality no longer works in the latest builds.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2013-03-05 at 3.21.01 PM.png | 2013-03-05T20:25:38.000+0000 | 146445 |
Hi Tommy, Can you provide some further information on this issue - Titanium Studio/SDK version - Operating System Could you also provide a small reproducible test case that will allow us to verify this issue. Thank you for your assistance. Jamie
Ti SDK: 3.1.0 CI OS: iOS6 1. Click login and and sign in to fb. 2. Click logout and error message shows up Also as a side, after logout is successful and user tries to login again, it still keeps the previous user.
Hi Tommy, In the 3.1.0 build of titanium facebook has been moved to its own module and so will not work, I would suggest using a GA build if you would like to use this API at the moment
have the same problem using fb.auth in one file and try to logout later in another.
Did you try the fix from TIMOB-12828? You'll need to use the latest CI build.