Guest User

Untitled

a guest
Dec 13th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Initialize the Facebook SDK.
  2. FB.init({
  3. appId: '<your-app-id>',
  4. oauth: true
  5. /* additional properties */
  6. });
  7.  
  8. // Open login popup.
  9. FB.login(function(response) {
  10. if(response.authResponse) {
  11. // Perform some logic to save the user and access token.
  12. }
  13. else {
  14. // User cancelled login or did not fully authorize.
  15. }
  16. });
Add Comment
Please, Sign In to add comment