Patent ID: 9639628
Date: 2017-05-02
CPC Classifications: G06F,H04L

Claim:
1. A method comprising: by a computer system of a social-networking system, receiving 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; by the computer system of the social-networking system, responsive to the request, retrieving 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; by the computer system of the social-networking system, for each user comment in the plurality of user comments: by the computer system of the social-networking system, determining a locality of the respective second user; by the computer system of the social-networking system, determining an ordering of 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 by the computer system of the social-networking system, providing for display on the third-party website the plurality of user comments based on the ordering of the plurality of user comments.