0

I'm using the phonegap facebook plugin (https://github.com/phonegap/phonegap-facebook-plugin).

When I call make a fql query, it never returns. For example

FB.api(
{
    method: 'fql.query',
    query: 'Select uid FROM user where uid=me()'
},
function(response) { alert("ok");}
);     (I don't get the alert)

However, when I make a regular api call, everything works fine. For example

FB.api("/me",
   function(response) { alert("ok");}
); (alert executes successful )

Any ideas?

4

1 回答 1

0

事实证明这是在 cordova/phonegap 中进行 fql 调用的正确方法

FB.api("fql", {q: query}, function(response) { alert("lalal");});

从这里得到它:https ://github.com/mgcrea/cordova-facebook-connect/issues/23

于 2013-09-16T23:11:45.323 回答