Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get the users information
- Ti.Facebook.requestWithGraphPath('me', {}, 'GET', function(e) {
- if (e.success) {
- // store information from the user in local gloabl variables
- var user = JSON.parse(e.result);
- Ti.App.Properties.setString('fullname', user.name);
- Ti.App.Properties.setString('email', user.email);
- Ti.App.Properties.setString('locale', user.locale);
- } else if (e.error) { alert(e.error);}
- else { alert('Unknown response'); }
- });
Add Comment
Please, Sign In to add comment