1. A method, comprising: receiving, at a data processing apparatus, an identifier that identifies a first user; accessing, at the data processing apparatus, data defining relationships of the first user to second users; accessing, at the data processing apparatus, digital photographs; determining, by the data processing apparatus, digital photographs that are each associated with one or more of the first user and the second users; for each digital photograph, generating a photograph score based on the association with one or more of the first user and the second users and corresponding affinity scores representing the relationships of the first user to the second users; ordering the digital photographs according photograph scores; and providing, by the data processing apparatus, one or more of the digital photographs to a user device of the first user according to the order.