当我尝试使用FQL查询读取用户新闻Feed时出现问题...
查询构造如下:
SELECT post_id, actor_id, target_id, type, message, attachment FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid = me() AND type = 'newsfeed')
我的HTTP GET看起来像这样:
https://graph.facebook.com/fql?q=SELECT%20post_id,%20actor_id,%20target_id,%20type,%20message,%20attachment%20FROM%20stream%20WHERE%20filter_key%20in%20(SELECT%20filter_key%20FROM%20stream_filter%20WHERE%20uid%20=%20me()%20AND%20type%20=%20'newsfeed')%20LIMIT%2010%20OFFSET%200&access_token=<User specific access token from trading "code" to access_token">
用户之前使用我的应用进行了身份验证,并且已授予的权限如下:
但是,当执行上述GET请求时,我得到了这个回复:
{
"error": {
"message": "(#606) Queries for these filter_keys: \"nf\" require a non-zero viewer that has granted read_stream permission",
"type": "OAuthException",
"code": 606
}
}
我已对我的用户帐户进行了双重检查,并且提供的access_token
有效。
任何帮助都会得到满足。感谢