LanceT Posted January 31, 2011 Share Posted January 31, 2011 How does facebook do their news feed? Or can you think of an algorithm that will do this effectively? I thought of an algorithm, but it's not that effective. My algorithm goes like this, choose 10 random friends from their friends list, and then put the latest updates of these friends into an array in order, then output the updates onto the feed in order. The problems with this algorithm are that this makes the feed change every time because there are new random friends shown. Then there's the problem of choosing friends that are inactive, therefore showing updates from a long time ago. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/226221-how-does-facebook-do-the-news-feed/ Share on other sites More sharing options...
ttocskcaj Posted January 31, 2011 Share Posted January 31, 2011 Choose friends they interact with a lot Link to comment https://forums.phpfreaks.com/topic/226221-how-does-facebook-do-the-news-feed/#findComment-1167790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.