So I have a a preLogin.js which is create a navigation group. After login I put navGroup.close() and the navigation group is closed. If the user is logged out I include the preLogin.js and the nav group is created again. Everything was working fine until I enter this in preLogin.js:
var buttonLoginFB = Titanium.Facebook.createLoginButton({ top: "90%", width: "70%", height: "12%", });The navGroup is closing as before but when is create for the second time, if the user press the facebook login button the fb login listener is executed 2 times. If I log out again and I press fb login button is executed 3 times and so on. So, why the fb login button does not work as the other buttons? Why it remains there and is executed 2 or 3 times?
Your Answer
Think you can help? Login to answer this question!