-
-
Save mdedetrich/8649cf29d64bd9d417f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/fbRedirect/:facebookApplicationID',(req,res)-> | |
facebookApplicationID = req.param('facebookApplicationID') | |
code = req.param('code') | |
db.facebookApplications.find({_id:db.ObjectID.createFromHexString(facebookApplicationID)}).toArray((err,results)-> | |
req.session.redirectCode = code | |
req.session.redirectFbAppID = results[0].fbAppID | |
req.session.redirectFbAppSecret = results[0].fbAppSecret | |
req.session.redirectApplicationID = facebookApplicationID | |
req.session.save((err)-> | |
res.type('html') | |
res.send(acceptHtml) | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment