Skip to content

Instantly share code, notes, and snippets.

@PantherHawk
Last active March 27, 2017 15:47
Show Gist options
  • Save PantherHawk/7005954d5c3259bade8c8b12b36b0b10 to your computer and use it in GitHub Desktop.
Save PantherHawk/7005954d5c3259bade8c8b12b36b0b10 to your computer and use it in GitHub Desktop.
getOpenGraph: function(req, res) {
console.log(req.body.url);
openGraph(req.body.url, function(err, meta) {
if (err) {
console.error(err);
} else {
res.send(meta);
}
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment