how to run fql

You must Login before you can answer or comment on any questions.

who can help me out ...

so basically i want to link the users name and profile photo from FB to the profile of my app. so when the user logs in into my app with FB and heads on over to profile, then he should be able to see his photo and name

my code is:

btnProfile.addEventListener('click', function (e){ winProfile.open();

function fQuery() { var myQuery = "SELECT name, pic_big FROM user WHERE uid = " +Titanium.Facebook.uid;

Titanium.Facebook.request('fql.query', {query: myQuery},  function(x) {   
        var results = JSON.parse(x.result);
        var username = results[0].name; //user's fb name
        var userpic = results[0].pic_big; //user's fb pic
    });

};

});

its not working so i don't really know what i am doing wrong ...

— asked 11 months ago by Napp Dev
1 Comment
  • Hi Napp, Titanium Does not support FQL.

    — commented 11 months ago by Nitin Chavda

Your Answer

Think you can help? Login to answer this question!