Facebook login button Not working in following condition.
Application type: mobile Titanium SDK: 3.1.3.201309132423 Platform & version: iOS 7.0 Device: iOS simulator
In app.js file i am written facebook login button code
fb.createLoginButton.addEventListener('login', function(e) {
// After login user is redirected to other page i.e page1.js and close app.js file
});
In page1.js page i am put logout button .
logout.addEventLisener("click",function(e){
// Logout from FB and again open app.js file
var window = Ti.UI.createWindow({
url : "app.js"
});
window.open();
});
After this code app.js file is open but i am not able to again click on Fb login button.
Is their any mistake in again calling app.js file or some FB issue?