Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

npm passport facebook

passport.use(new FacebookStrategy({
    clientID: FACEBOOK_APP_ID,
    clientSecret: FACEBOOK_APP_SECRET,
    callbackURL: "http://localhost:3000/auth/facebook/callback"
  },
  function(accessToken, refreshToken, profile, cb) {
    User.findOrCreate({ facebookId: profile.id }, function (err, user) {
      return cb(err, user);
    });
  }
));
Comment

npm passport facebook

$ npm install passport-facebook
Comment

PREVIOUS NEXT
Code Example
Shell :: mac zhs not found 
Shell :: cmd check if environment variable exists 
Shell :: install fzf wsl 
Shell :: killall kdevtmpfsi && killall kinsing 
Shell :: ps create empty file 
Shell :: Copying Folder to Server 
Shell :: PortableVisibilityConverter 
Shell :: command on every line curl 
Shell :: file transfer disabled by policy 
Shell :: linux how to cd into directory and run command without changing working directory 
Shell :: centos Display information about users who are currently logged in. 
Shell :: Error: Cannot make for win32 and target squirrel: the maker declared that it cannot run on win32 
Shell :: kill user tty sessions terminal 
Shell :: Docker dial unix 
Shell :: Git - Can we recover deleted commits? [duplicate] 
Shell :: sh add 
Shell :: instsall typo3 
Shell :: nmap problem binding to interface 
Shell :: keycloak constraint already exists 
Shell :: How to enable minimize on click of doc icon 
Shell :: virt manager share folder with virtual machine windows 10 
Shell :: how to show freeswitch registrations from fs_cli 
Shell :: batch write to file 
Shell :: Ubuntu adhan program 
Shell :: cm4 usb not working 
Shell :: docker entrypoint how not finish container 
Shell :: source scl_source enable devtoolset-6 
Shell :: partial match find terminal "find" 
Shell :: bash if string does not start with 
Shell :: #include <bluetooth/bluetooth.h 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =