Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created April 14, 2012 17:28
Show Gist options
  • Save RobSpectre/2386100 to your computer and use it in GitHub Desktop.
Save RobSpectre/2386100 to your computer and use it in GitHub Desktop.
Simple reverse proxy of Facebook API
var http = require('http'),
https = require('https'),
httpProxy = require('http-proxy');
httpProxy.createServer(function (req, res, proxy) {
console.log("Received request.");
proxy.proxyRequest(req, res, {
host: 'graph.facebook.com',
port: '443',
https: true
});
console.log(proxy);
}).listen(8000);
@ib0b
Copy link

ib0b commented Apr 12, 2017

Does this allow one to use facebook as a proxy server or what does it exactly do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment