You have:
- A synthax error:
type='newsfeed'
must betype="newsfeed"
, because your query already starts after an apostrophe'
. uid2
can't be found into#query0
, because the fielduid2
does not exist into thestream
table. You most probably need theactor_id
instead.
Here is your FQL query corrected:
{
'query0':'SELECT post_id, actor_id, message, created_time FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type="newsfeed") AND is_hidden = 0 ORDER BY created_time DESC LIMIT 5',
'query1':'SELECT id, name, pic_square FROM profile WHERE id IN (SELECT actor_id FROM #query0)'
}