daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Aug 11th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'});
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top