Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created September 26, 2011 05:02
Show Gist options
  • Save ejhayes/1241644 to your computer and use it in GitHub Desktop.
Save ejhayes/1241644 to your computer and use it in GitHub Desktop.
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();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment