我正在通过 php sdk 运行以下 FQL:
{
"posts" : "SELECT post_id, actor_id, message, type FROM stream WHERE type = '80' AND message != '' AND filter_key in (SELECT filter_key FROM stream_filter WHERE uid='588853265' AND type='newsfeed') AND is_hidden = 0 ORDER BY created_time DESC LIMIT 50",
"actors" : "SELECT uid,name FROM user WHERE uid IN (SELECT actor_id FROM #posts)",
"links" : "SELECT owner, url FROM link WHERE link_id IN (SELECT post_id FROM #posts)"
}
对于帖子和演员,我得到了预期的结果,但对于链接却没有(结果为空)。我认为问题在于链接表使用了普通 ID,但我的“流”中的“帖子”以以下格式显示 ID:USERID_LINKID。
我玩过 substr() 和 strlen() 来让它工作但没有运气。