Created
August 23, 2011 22:51
-
-
Save mattapperson/1166830 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow(); | |
Titanium.Facebook.appid = "181219095251677"; | |
Titanium.Facebook.permissions = ['publish_stream', 'read_stream', 'offline_access']; | |
var alertDialog = Titanium.UI.createAlertDialog({ | |
title : 'Facebook', | |
message : 'You need to login with Facebook', | |
buttonNames : ['Login Facebook'] | |
}); | |
alertDialog.addEventListener('click', function(e) { | |
Titanium.Facebook.authorize(); | |
}); | |
alertDialog.show(); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment