Created
December 12, 2009 02:39
-
-
Save jhaynie/254685 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* this is a simple workaround for module level state changes (like login) when not using the button | |
* related to | |
* | |
* https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/314-need-to-support-facebook-module-level-state-changes-that-arent-tied-to-a-button | |
*/ | |
if (typeof Titanium.Facebook._LIS == 'undefined') | |
{ | |
Titanium.Facebook._LIS = []; | |
} | |
Titanium.Facebook._LIS.push(function(a) | |
{ | |
Titanium.API.info("facebook state changed to = "+a.event); | |
}); | |
Titanium.Facebook.login(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment