Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
Add Comment
Please, Sign In to add comment