A simple feature on Facebook is to show posts from your friends, but also posts that your friends shared. In the case of shared posts, it's titled as "Kelly and 4 others" shared XYZ post. In addition, if several of your friends shared the post, Facebook aggregates them and only shows you the post once, it won't show up several times. Facebook seems to show flat feed and aggregate feeds all in the same timeline view.
I'd like a way for a feed to show aggregate and flat feed types in a user's timeline (flat feed). I have the following feeds setup:
timeline feed (flat)
user feed (flat)
Every time user A follows user B, I call getstream to update user A's timeline feed to follow user B's user feed.
What I'd like to do in addition to the above is this as an example timeline to show to users:
Flat Post 1 (from following user A)
Flat Post 2 (from following user B)
Aggregated Post 1 (4 people you're following shared a post X)
Flat Post 3 (from following user A)
Flat Post 4 (from following user C)
Aggregated Post 2 (3 people you're following liked post Y)
It seems like the way to do this right now is that I'd have to fetch the activities in the timeline feed from getstream, then also fetch an aggregate feed and somehow mix the two on our backend?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…