来自Facebook错误的FQL查询(“必须是索引列”)

时间:2013-07-24 23:30:33

标签: javascript facebook-fql

我正在尝试为Facebook运行以下FQL查询:

FB.api({
method:'fql.query',
query:'SELECT username FROM page WHERE type IN ("Musician/band")'},
function(data) {
console.log(data);
});

运行时,我在javascript控制台中收到以下错误:

"Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql "

我已检查此页面,并且类型旁边没有星标。我不允许使用FQL按类别搜索FB页面?还是有另一种方式来写这个。谢谢。

1 个答案:

答案 0 :(得分:0)

如果它不可索引,则无法将其编入索引。它旁边必须有一颗星。

您可以尝试使用

SELECT username FROM page WHERE CONTAINS("Musician/band")