Then you could make the custom one
Here is the method
facebook login
Ti.Facebook=Titanium.Facebook = require('facebook');
Ti.Facebook.appid = FACEBOOK_APP_ID;
Ti.Facebook.permissions = ['publish_stream']; // Permissions your app needs
Ti.Facebook.forceDialogAuth = true;
var btnLogin = Titanium.UI.createButton({
title: 'Hello',
top: 10,
width: 100,
height: 50
});
win.add(btnLogin);
btnLogin.addEventListener('click',function(e)
{
Ti.Facebook.addEventListener('login', function(e) {
if (e.success) {
alert('Logged In');
} else if (e.error) {
alert(e.error);
} else if (e.cancelled) {
alert("Canceled");
}
});
Ti.Facebook.authorize();
});
and FB logout
var btnLogout = Titanium.UI.createButton({
title: 'Hello',
top: 10,
width: 100,
height: 50
});
win2.add(btnLogout);
btnLogout.addEventListener('click',function(e)
{
Ti.Facebook.addEventListener('logout', function(e) {
alert('Logged out');
});
Ti.Facebook.logout();
});
Thanks