title: having a bit of a trouble with promises in nodejs
body: <p>Forgive my noobiness, but how do I rewrite these with promises?</p>
  
  <p>I read mongoose supports promises. Not sure about social, but console.log shows me it returns object, so that must be it?</p>
  
  <pre><code>mongoose.connect('mongodb://localhost/trends');
  
  social.facebook(urlValue, function(err, signals) {
    console.log(signals);
  });
  
  var articleData = Article({
    publisher: urlValue,
    url: urlValue
  });
  
  articleData.save(function(err) {
    if (err) throw err;
    console.log('Url saved successfully!');
  });
  </code></pre>