Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.use(function(req, res, next){
- // verify that user is a valid authenticated one
- if( req.facebook.getSession() ){
- // get user info then
- req.facebook.api('/me', function(me){
- console.log(me);
- });
- };
- next();
- });
Add Comment
Please, Sign In to add comment