Algorithms for social networking sites?
I am developing a social networking site for my college and I need some algorithms for it.
For example - showing 'N' recent "posts" from "friends", displaying "posts" with "comments", showing list of online "friends", etc.
Is there any site which deals with this? It will be great if the site also contains articles on things like 'tips' and 'best practices'.