12. One or more computer-readable non-transitory storage media embodying software that is operable when executed to: receive at a social-networking system a request for user comments to be displayed in a user interface with web content of a third-party website distinct from the social-networking system, the request associated with a first user, the third-party website being hosted by a third-party system that is separate from the social-networking system, and the social-networking system comprising social graph information that comprises a plurality of nodes connected by a plurality of edges, wherein each node corresponds to a member of the social-networking system, and each edge represents a relationship between two users who correspond to two nodes connected by the edge; responsive to the request, retrieve from a data store of user comments a plurality of user comments, each of the plurality of user comments being submitted by a respective second user from a plurality of second users, and the data store being maintained by the social-networking system; for each user comment in the plurality of user comments: compute an affinity score based on: (1) social graph information about a relationship between the first user and the respective second user associated with the user comment, and (2) user activities of the first user and the respective second user within an environment provided by the social-networking system, wherein the user activities include interactions by the first user with content or with another user; determine a locality of the respective second user; order the plurality of user comments based on the social-graph information of the first user, the computed affinity scores, and the locality of the respective second user; and provide for display on the third-party website the plurality of user comments based on the ordering of the plurality of user comments.
12. One or more computer-readable non-transitory storage media embodying software that is operable when executed to: receive at a social-networking system a request for user comments to be displayed in a user interface with web content of a third-party website distinct from the social-networking system, the request associated with a first user, the third-party website being hosted by a third-party system that is separate from the social-networking system, and the social-networking system comprising social graph information that comprises a plurality of nodes connected by a plurality of edges, wherein each node corresponds to a member of the social-networking system, and each edge represents a relationship between two users who correspond to two nodes connected by the edge; responsive to the request, retrieve from a data store of user comments a plurality of user comments, each of the plurality of user comments being submitted by a respective second user from a plurality of second users, and the data store being maintained by the social-networking system; for each user comment in the plurality of user comments: compute an affinity score based on: (1) social graph information about a relationship between the first user and the respective second user associated with the user comment, and (2) user activities of the first user and the respective second user within an environment provided by the social-networking system, wherein the user activities include interactions by the first user with content or with another user; determine a locality of the respective second user; order the plurality of user comments based on the social-graph information of the first user, the computed affinity scores, and the locality of the respective second user; and provide for display on the third-party website the plurality of user comments based on the ordering of the plurality of user comments. 15. The media of claim 12 , wherein the plurality of user comments are ordered further based on reputation scores associated with authors of the plurality of user comments.