Guest User

Untitled

a guest
Aug 11th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Facebook javascript login window
  2. FB.login(function(response) {
  3. if (response.authResponse) {
  4. console.log('Welcome! Fetching your information.... ');
  5. FB.api('/me', function(response) {
  6. console.log('Good to see you, ' + response.name + '.');
  7. FB.logout(function(response) {
  8. console.log('Logged out.');
  9. });
  10. });
  11. } else {
  12. console.log('User cancelled login or did not fully authorize.');
  13. }
  14. }, {scope: 'email'});
Add Comment
Please, Sign In to add comment