2

我目前正在制作一个应用程序,它将阅读我墙上的一些帖子。问题是我不断收到此错误

Fatal error: Uncaught Exception: 604: 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 thrown in \application\libraries\base_facebook.php on line 1238

我已经拥有这些权限,我什至在我的应用程序设置中添加了一些其他权限。read_stream offline_access read_insights

AppId、secret 和 access_token 都设置好了。

更新:现在,当我将查询更改为此时,API 返回一个不同的错误

$fql = "SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id = me() AND created_time > 1346277600 LIMIT 50";

更新:我现在收到此错误

Fatal error: Uncaught Exception: 102: Requires user session thrown in \application\libraries\base_facebook.php on line 1238
4

2 回答 2

3

我只是忘了把access_tokenat the facebook->api call

$data['posts'] = $this->facebook->api(array(
                   'method' => 'fql.query',
                   'query' => $fql,
                   'access_token'=>$facebook['access_token']
                 ));
于 2012-09-03T05:38:03.743 回答