Hi I have Two Different Queries one is for username
and second is for retrieving Messages
and actor_id
so how I can combine both query and getting my correct result. my queries like.
var Query1 = fbApp.Query("SELECT uid, name, pic_square FROM user WHERE uid = me() OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())");
var newsFeed = fbApp.Query("SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND is_hidden = 0");
thank you..!!
The Enumerable.Union method allows you to combine both results (provided both return an enumeration of the same type). Enumerable.Intersect can help you find only users that exist in both lists.
From MSDN:
So for you something like this: