Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhaynie/254685 to your computer and use it in GitHub Desktop.
Save jhaynie/254685 to your computer and use it in GitHub Desktop.
/**
* 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