Skip to content

Instantly share code, notes, and snippets.

Avatar

Gustavo De Mari Pereira gustavodemari

View GitHub Profile
@gustavodemari
gustavodemari / gist:5344b6673faa014f7b42
Created Jan 15, 2015
Imprimir dados de profile do Facebook com Passport
View gist:5344b6673faa014f7b42
//http://passportjs.org/guide/facebook/
var passport = require('passport')
, FacebookStrategy = require('passport-facebook').Strategy;
passport.use(new FacebookStrategy({
clientID: FACEBOOK_APP_ID,
clientSecret: FACEBOOK_APP_SECRET,
callbackURL: "http://www.example.com/auth/facebook/callback"
},