我将此查询用于 FQL:
SELECT pid, object_id, caption, like_info, comment_info, src, src_small, src_big, images FROM photo WHERE album_object_id="10151088306597851" ORDER BY like_info DESC
但是,当我将 Javascript SDK 与 FB.api() 方法一起使用时,它会失败并显示错误 604“您的语句不可索引。WHERE 子句必须包含可索引列。此类列在从http://链接的表中标有 * developer.facebook.com/docs/reference/fql “但根据表格“照片”“album_object_id”的文档是可索引的..
这是我的 Javascript 代码:
if (album_object_id) {
var query = 'SELECT pid, object_id, caption, like_info, comment_info, src, src_small, src_big, images FROM photo WHERE album_object_id="' + album_object_id + '" ORDER BY like_info DESC';
//console.log(query);return;
FB.api('/fql?q=' + encodeURI(query), callback);
}
当我记录查询并将其复制/粘贴到图形 API 控制台时,它工作正常..
有什么线索吗??
欢呼 Sjoerd