How would you determine how to rank posts in the newsfeed?
You'll get access to over 3,000 product manager interview questions and answers
Recommended by over 100k members
Facebook technical questions require this level of detail.
C: Okay, Are we discussing facebook newsfeed here or some other SN?
I: Facebook.
C: By Posts, i am inferring anything that appears on the newsfeed like photos, videos, memes, links, Ads etc.
I: Yeah, correct.
C: By ranking posts in the news feed, i am assuming that we focus on the order of posts in the news feed,ie, what appears first and what later. Am i correct?
I: Yeah, we want to look at the order.
C: Okay.Are we focussed on the newsfeed of a stable, old user or a new user cause the news feed may look different in the two cases?
I: Stable User.
C: Okay.
Now the User group is a stable, old User of Facebook.
Although there can be different personas of the users but we might want to make an algorithm that fits well with most of the users.
We may change the algorithm a little bit depending upon the User Groups and geography/demography and this can be a part of our experiments.
Now, lets first think what are the factors that determine the importance of the post to me as a user.
1. How close/good friend am i to the person whose post we have to rank?
2. How important is that post?
3. What is the post type? Video/ link/ text/photo etc
4. Is the post Recent/old?
5. How much other people have liked/reacted to the post?
6. For Ads, how relevant is the Ad to me as a User?
Lets discuss this one by one
1. 1. How close/good friend am i to the person whose post we have to rank?
I will want to see the post of a person who is a good friend in real life first in my news feed. The closest proxy to real life friendship is facebook engagement,ie if i engage with someone's posts regularly i am a close friend of that person and should be ranked higher in my news feed.
2. How important is that post?
Posts which are of an important life event like Convocation, Marriage etc. are very important posts and they should be propelled to the top of news feed as these signify an important life event.
3. What is the post type? Video/ link/ text/photo etc
Now, facebook has the data that as user, I like to engage more with a particular type of post, which maybe videos or memes or links. Showing them first will capture more attention of the user and facebook would want to show them first.
4. Is the post Recent/old?
Recent posts are more likely to be relevant as on today. Hence, it makes sense to show recent posts first. However, this should be seen in conjunction with other variables like Posts importance.
5. How much other people have liked/reacted to the post?
More engagement per post means more is the quality of that post. Its like a real time crowdsourced way to tell about a post's quality. Hence, the post that gets more likes gets a better Post Rank
6. For Ads, how relevant is the Ad to me as a User?
Now, showing Ads between posts is as much an Art as it is a science.
Lot of Ads will drive away the user. Very few Ads will mean less Revenue.
The important thing here is Relevance of the Ad to the User and his past Ad interactions.
Ads are less suitable for top of the news feed. They should be placed in between organic posts. But it is important to place Relevant Ads( coming from User's browsing behavior) shown first then other ads.
Now, the actual relative importance of the above logics can be part of an A/B/N experiment that aims to maximise user engagement and facebook revenue.
The relative weights may also depend on the demographic and country of the user. Eg. Certain country users enagage with Ads or Videos more than other countries etc.
This will an algorithm that will be always a work in progress and evolve itself to suit the goals of engagement and revenue.
Clarification questions:
Who am I ? The PM of newsfeed ? or ? …
What do we mean by “ranking “ ? is it the place of appearance ? is an internal engagement ranking ? or ?...
How would this ranking manifest ?
What do mean by Posts ? any content that is shared ? by any user ? or ?..
Let's pls quickly review the Newsfeed goals, metrics and users/actors, before we jump into solutioning ?
Newsfeed is like the “BFF” of the user.. it's the homepage that brings to the user all of the content that the user is deemed to be interested in, know about, and benefit from.
It’s a mature product, although it keeps learning all the time, and It serves practically all of FB users.
To determine how we to start determining posts ranking in the newsfeed I’d like to focus on one user segment who (1) can potentially benefit the most from this logic, and (2) who would then be more engaged and delighted, hence bring positive impact to FB .
So user segmentation related to the newsfeed can take different shapes and forms, here are some examples (that are not mutually exclusive):
By social connection intensity:
very.high.social.connected users (eg. 1000+ friends)
...
By behaviour:
very.highly.engaged.users (eg. users in the top 10% percentile of dau/mau)
Newsfeed.frequent.visitors (eg. users who spend in avg.20min on the feed, 7d/7d)
medium.level.engaged.fb.users_low.engaged.Newsfeed.users (eg. users who spend in avg.1min or less on the feed, 50% percentile of dau/mau)
…
By demographics:
Millennials
…
By user lifecycle:
New users
Returning users
…
By dominant device type:
Tablet users
Desktop users
…
I’d like to focus on medium.level.engaged.fb.users_low.engaged.Newsfeed.users, who are using mobile device since:
They represent a big enough group (say between 9% to 11% of the overall MAUs).
The usage on the mobile platform is the most intensive one and there could be different considerations for content prioritization and viewing between the platforms.
The hypothesis is that if we can increase their engagement on the newsfeed we could increase their overall engagement.
What potential pain points could they have with regards to the newsfeed and the posts ?
They open the app with a clear intent (to go to groups, events, …) and thus are “blinded” to the newsfeed
They might not find interesting posts in the very first glance at the screen
They may not recognise the users who posts / comment / react , hence they might be reluctant to engage with the page
We can focus on problem 1 (newsfeed bliness) since it is very fundamental to make sure that these users are not blinded before taking further optimisation actions.
If we’re discussing the logic / algorithm to use, and what data points to use, we can try the following solutions:
solutions:
We can test some solutions for the hypothesis that “better ranked posts will increase newsfeed engagement for said user segment, while not negatively affecting their overall engagement and usage”
embedding notifications messages in the newsfeed, to increase the frequency of visit to the feed
prioritizing post that are based on- or sources to- their most engaging behavior/products on fb, for example, people who are heavy marketplace users would see more newsfeed posts from the marketplace with the objective of improving the marketplace experience thru newsfeed
inviting them to take a dynamic survey where they will be asked to review the newsfeed and indicate what posts are - more / less valuable for them, to learn and to entice them to spend a bit of time on the newsfeed
I’d like to focus on solution 3 (dynamic survey) since it is much less risky, in terms of cannibalizing other behaviours/products, it has medium level efforts, and it can create a big impact to our goal.
The metrics for testing this solution with said user segment:
newsfeed.engagement.KPI rate (blended metric including number of reactions, comments, shares, time-on-newsfeed, interactions, etc on the newsfeed)
retention rate (7d, 14d)
DAU/MAU rate
…
Okay, That's an interesting question to tackle to. But before jumping to theanswer directly I, would like to clarify a few things here.
Clarification:
- So the question wants me specifically share "how I'll determine"-meaning the factors to look into right? Yes
- By Newsfeed we mean to talk about the homepage that one starts with in Facebook that shows posts from the pages the user follows and the posts from their friends. The Posts might be Text, Image, Video or it could be some Ad from FB as well.-Yeah, this is what we are discussing about
- So here, we are to comeup with an algorithm in general to the diffferent users on which post should come up where. Yeah.
- New Users of FB- We don't have enough data and thus ranking might be different
- Existing Users of FB- We have loads of data that will factor in a lot of changes to our Algorithm.
- How close the author of the post is with the user: Direct Friend should be of high priority. Next will be the friends with Decreasing # of Mutual Friends who posted with Freinds of Friends Level.
- How close the user follows the page: The posts from pages that user interacts with the most should be given highest priority.
- What is the Genre of the post? The post genres that the user has reacted more can be prioritized highly of the posts
- What is the type of the post? If user interacts most with memes/Pictures compared to text and Videos, prefer that over the other two.
- How new the post is? The more recent the post the more related will it be to the user. So recency should be preferred.
- Quality of the post The quality of the post can be tested using the # of interactions that the post has got. Along with the same, if the post has many mutual friends of the user interacting to it, then it should be prioritized more. Of the interactions, Tagging, Commenting should be of higher preference
- Ads: Ads are generally friction point in a user's journey. So no matter how related to the user is these ads are to be placed never at the beginning. It should always be given to the user somewhere in the middle between two organic posts. The Frequency is to be decided using A/B tests as the frequency tolerance nature will differ with Geographies.
Clarifying questions - is monetisation a concern? A: No
In order to determine the ranking of posts, I would first like to understand the types of posts. AFAIK, we see
Posts from friends
Posts from groups
Posts from advertisers
Posts about friends’ activities
And in-general, post can be text, images or videos.
Assumption: since we are just trying to determine ranking of posts, we will not be focusing on any other feature that can impact engagement with news feed.
What is the goal of news feed - inform users about whats going in the lives of their friends / family as well as in the world, about things they like.
Its in the front and center of the app, and core feature which drives user engagement.
We will be solving to increase user engagement without negatively impacting monetisation. Underlying hypothesis is that increased in engagement will increase DAU.
Now, we should look at the different types of users who engage with news feed -
Power users - users with greater than avg engagement
Casual users - user with avg engagement
Lurkers - users with less than avg engagement
Churned - users who no longer use FB app but still use instagram, whatsapp
Based on our goal, our maximum impact can be on Lurkers who browse the feed but do not really engage.
I would then pull engagement metrics for lurkers for each post types and within them each kind of post
Then I would propose a multi-variate test to figure out what moves the needle on engagement -
Variant A - Ranking based on type of post engagement (videos, images, text)
Variant B - Ranking based on forecasted engagement (mix of all)
The final ranking would be determined based on the A/B test result - anything that moves the needle most on engagement (likes, comments, new posts, shares) & does not negatively impact avg rev / user will be the winner. And this will be an iterative process as our algos learn more about our users, we will have to constantly keep on iterating the ranking.
Top Meta (Facebook) interview questions
- What is your favorite product? Why?89 answers | 263k views
- Build a product to buy and sell antiques.54 answers | 66.8k views
- A metric for a video streaming service dropped by 80%. What do you do?50 answers | 135k views
- See Meta (Facebook) PM Interview Questions
Top Technical interview questions
- Imagine you're the product manager for Facebook Marketplace. Since many sellers don't mark items as sold, what existing functionality and metrics could you use to determine whether an item has likely sold?7 answers | 20.9k views
- What happens when you enter a URL in your browser?6 answers | 10.8k views
- How does TinyURL work?5 answers | 317k views
- See Technical PM Interview Questions
Top Technical interview questions
- The Chrome team is looking to reduce power utilization on mobile phones when using the browser. How would you go about solving this problem?3 answers | 3.7k views
- How would you map the ocean?3 answers | 2.9k views
- Create an API design for third-party integration for payments.3 answers | 4.2k views
- See Technical PM Interview Questions