 url = require 'url'
 Q = require 'bluebird-q'
 request = require 'superagent'
-requestBluebird = require 'superagent-bluebird-promise'
 Backbone = require 'backbone'
 { Image } = require 'artsy-backbone-mixins'
 debug = require('debug') 'api'

              </figure><footer></footer></article>
</body>
</html>"
  requestBluebird
    .post "https://graph.facebook.com/#{FB_PAGE_ID}/instant_articles"
    .send
      access_token: INSTANT_ARTICLE_ACCESS_TOKEN
      development_mode: true
      html_source: html
    .end (err, response) =>
      console.log response

postSailthruAPI = (article, tags, images, cbAPI) ->
  html = if article.send_body then getTextSections(article) else ''

    full: url: crop(imageSrc, { width: 1200, height: 706 } )
    thumb: url: crop(imageSrc, { width: 900, height: 530 } )
  cleanArticlesInSailthru article.slugs
  async.parallel [
    (callback) ->
      postFacebookAPI article, callback
    (callback) ->
      postSailthruAPI article, tags, images, callback
  ], (err, results) ->
    console.log results
    console.log err
    cb()

postFacebookAPI = (article, cb) ->
  html = "<html lang=\"en\" prefix=\"op: http://media.facebook.com/op#\">
<head>
<meta charset=\"utf-8\">
