5. The method of claim 1 , wherein updating the ranking further comprises: removing candidate stories associated with logged actions having one or more types not associated with the requested view.
1. A method comprising: logging actions taken by users of a social networking system; determining one or more story generators based on a view requested by a client device of a viewing user of the social networking system; accessing a plurality of logged actions of the viewing user or one or more other users connected to the viewing user in the social networking system; selecting one or more of the logged actions based on a relevance of each of the logged actions to the viewing user; generating a plurality of candidate stories from the logged actions using the one or more story generators, each of the plurality of candidate stories being associated with a story type of a plurality of story types, where two or more candidate stories of the plurality of candidate stories are associated with a same logged action; generating an affinity for each of the plurality of candidate stories, wherein each affinity comprises a measure of the relevance of a candidate story of the plurality of candidate stories to the viewing user; generating a ranking of the plurality of candidate stories based on the affinity generated for each the plurality of stories; identifying the two or more candidate stories that are associated with the same logged action; responsive to the identifying, updating the ranking by removing a subset of the two or more candidate stories from the ranking; selecting one or more of the plurality of candidate stories as selected stories for the view requested by the client device of the viewing user based on the updated ranking; and sending the requested view comprising displayable representations of the selected stories to the client device for display to the viewing user.