Skip to content

Instantly share code, notes, and snippets.

View gustavodemari's full-sized avatar

Gustavo De Mari Pereira gustavodemari

View GitHub Profile
@gustavodemari
gustavodemari / gist:5344b6673faa014f7b42
Created January 15, 2015 00:30
Imprimir dados de profile do Facebook com Passport
//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"
},