title: Appcelerator Titanium: Facebook Image Upload fail
body: <p>i have an error with the Image Upload from Facebook in my Titanium Software, everytime i want to upload an image from my App i get this:</p>
  
  <blockquote>
    <p>Fail: REST API is deprecated for versions v2.1 and higher</p>
  </blockquote>
  
  <p>But if i try the same code in the KitchenSink example app, it works perfect:</p>
  
  <pre><code>var xhr = Titanium.Network.createHTTPClient({
          onload: function() {
       // first, grab a "handle" to the file where you'll store the downloaded data
              var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'mygraphic.png');
              f.write(this.responseData); // write to the file
              var blob = f.read();
              var data = {
                  caption: 'behold, a flower',
                  picture: blob
              };
              facebook.request('photos.upload', data, showRequestResult);
          },
          timeout: 10000
      });
      xhr.open('GET','http://www.pur-milch.de/files/www/motive/pm_motiv_kaese.jpg');
      xhr.send(); 
  </code></pre>
  
  <p>And in my App:</p>
  
  <pre><code>function showRequestResult(e) {
      var s = '';
      if (e.success) {
          s = "SUCCESS";
          if (e.result) {
              s += "; " + e.result;
          }
      } else {
          s = "FAIL";
          if (e.error) {
              s += "; " + e.error;
          }
      }
      alert(s);
  }
  Ti.App.hs_stats.addEventListener('touchend', function(e){
  Ti.App.hs_stats.top = 255;
  var xhr = Titanium.Network.createHTTPClient({
          onload: function() {
       // first, grab a "handle" to the file where you'll store the downloaded data
              var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'mygraphic.png');
              f.write(this.responseData); // write to the file
              var blob = f.read();
              var data = {
                  caption: 'behold, a flower',
                  picture: blob
              };
              Ti.App.fb.request('photos.upload', data, showRequestResult);
          },
          timeout: 10000
      });
      xhr.open('GET','http://www.pur-milch.de/files/www/motive/pm_motiv_kaese.jpg');
      xhr.send();     
  });
  </code></pre>