Skip to content

Instantly share code, notes, and snippets.

View RaccoonDev's full-sized avatar
🏠
Working from home

Dmytro Mykhailov RaccoonDev

🏠
Working from home
View GitHub Profile
@RaccoonDev
RaccoonDev / gist:8dbe1e0a28535b7ed599
Created March 24, 2015 15:01 — forked from jaredhanson/gist:2559730
Sample of Restify app with facebook authentication
// Based off example code from Hal Robertson
// https://github.com/halrobertson/test-restify-passport-facebook
// See discussion: https://groups.google.com/forum/?fromgroups#!topic/passportjs/zCz0nXB_gao
var restify = require('restify')
// config vars
var FB_LOGIN_PATH = '/api/facebook_login'
var FB_CALLBACK_PATH = '/api/facebook_callback'
var FB_APPID = '<<YOUR APPID HERE>>'