Guest User

Untitled

a guest
Nov 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // get the users information
  2. Ti.Facebook.requestWithGraphPath('me', {}, 'GET', function(e) {
  3. if (e.success) {
  4.  
  5. // store information from the user in local gloabl variables
  6. var user = JSON.parse(e.result);
  7.  
  8. Ti.App.Properties.setString('fullname', user.name);
  9. Ti.App.Properties.setString('email', user.email);
  10. Ti.App.Properties.setString('locale', user.locale);
  11.  
  12. } else if (e.error) { alert(e.error);}
  13. else { alert('Unknown response'); }
  14. });
Add Comment
Please, Sign In to add comment