 <p>After successful login via facebook save user id into a global variable or in app properties. I will prefer app properties because unless the user will logout from facebook the uid will remain in the app properties i-e</p> <pre><code>Ti.App.Properties.setString('uid', Ti.Facebook.uid); </code></pre> <p>so when you use your app back just check the uid first.</p> <pre><code>var fb_id = Ti.App.Properties.getString('uid'); if(fb_id){ // your code } </code></pre> <p>and when you logout clear the variable with '' or null.</p>