1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
exports.signUpConn = function(data, callback) {
var json, data, name, picture, description;
var url = "https://graph.facebook.com/" + Titanium.App.Properties.getString("sidnamn") + "?fields=cover";
var loader = Titanium.Network.createHTTPClient();
loader.onload = function() {
    var data = JSON.parse(this.responseText);
    var images = [];
    for (var c = 0; c < 1; c++) 
       
        var view = Ti.UI.createImageView({
            image : data.cover.source,
            width : 300,
            height : 111,
            top : 5,
        });
        win.add(view);
    
 }
 callback(view)
loader.open("GET", url);
loader.send();

}