Fix flickr and instagram api for heroku.