       development_mode: true
       html_source: html
     .end (err, response) =>
-      console.log response
-      cb()
-
-postSailthruAPI = (article, tags, images, cbAPI) ->
+      return cb err if err
+      cb response
+
+postSailthruAPI = (article, tags, images, cb) ->
   html = if article.send_body then getTextSections(article) else ''
   sailthru.apiPost 'content',
   url: "#{FORCE_URL}/article/#{_.last(article.slugs)}"

    daily_email: article.daily_email
    weekly_email: article.weekly_email
  , (err, response) =>
    debug err if err
    cbAPI()

cleanArticlesInSailthru = (slugs = []) =>
  if slugs.length > 1

  ], (err, results) ->
    console.log results
    console.log err
    debug err if err
    cb()

postFacebookAPI = (article, cb) ->
  html = '<html></html>'
  request
    .post "https://graph.facebook.com/v2.7/#{FB_PAGE_ID}/instant_articles"
    .send
