Homefeed content preference- like facebook/instagram

Hello Developers,
I created a social media app like Facebook, and now I want to implement the content preference functionality(filtering/sorting)
How can I achieve this functionality - to create a homefeed like Facebook/Instagram.

@syedfaizishah555 You need two parts: a scoring system and an efficient query.

First, store relationships and signals. For example: who the user follows, post likes, comments, tags, categories, created date, etc. Your Post data type should include fields like Creator, Created Date, and any engagement counts you track.

Second, build a scoring logic. In Bubble, you don’t run complex real-time ranking like big platforms do. Instead, you approximate it. Common approach:

When a user opens the home feed, search for Posts where:
Creator is in Current User’s Following
or
Post visibility = Public

Then sort by a combination of:
Created Date (descending)
and/or a calculated engagement score (likes + comments).

For better control, you can store a numeric “score” field on each Post and update it via backend workflows whenever someone likes or comments. Then your repeating group sorts by that score.

If performance becomes an issue, avoid heavy “:filtered” on the client side. Do as much filtering as possible directly in the “Do a search for” constraints so it runs server-side.

You won’t replicate Facebook’s algorithm exactly, but a mix of recency + engagement + followed users will give you a solid, scalable home feed.

Great, Thank you