내 모바일 티타늄 응용 프로그램의 인증으로 facebook 계정을 취급하고 싶습니다. 는이 코드 페이스 북의 로그인티타늄의 응용 프로그램으로 페이스 북으로 로그인
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();
});
을 이용하고 있고 FB는
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();
});
로그 아웃하지만이 이메일 주소를 입력하는 대화를주고있다 및 password.There가 sigup으로 페이스 북의 계정을 사용하는 특정 응용 프로그램입니다 해당 대화 상자를 열지 않고 직접 로그인합니다. 다른 리소스를 찾았습니다
https://gist.github.com/damienb/855583 그러나 사용 방법을 잘 모르겠습니다. 구현 담당자에게 알려주십시오. 감사합니다. .