mgcrea / cordova-facebook-connect

Cordova ARC plugin for the Facebook SDK
94 stars 43 forks source link

Execute FQL query #23

Open mionstar opened 11 years ago

mionstar commented 11 years ago

Hi. Thanks for creating great plugin.

I'd like to use FQL query with this plugin. If is there way to it, could you tell me how to do it.

I thank you for reading it through. (If there are some mistakes in English, I'd like to apologize.)

bperin commented 11 years ago

You can execute a FQL query with the graph api, for example this will find all friends of the logged in user who also are using the app

      var query = 'select uid,name,pic_square from user where uid in (select uid2 from friend where uid1=me()) and    is_app_user=1';

        facebookConnect.requestWithGraphPath("fql", {q: query}, function(result) {

        });