主权项 |
1. A method comprising: maintaining, using one or more processors associated with one or more computer servers associated with a social-networking system, a social graph comprising: a plurality of user nodes, wherein each user node corresponds to a user of the social-networking system; and a plurality of edges, wherein one or more edges connect two user nodes, wherein the two user nodes correspond to two respective users of the social-networking system, and wherein the edges connecting the two user nodes represent a social contact relationship between the two users; maintaining, using the one or more processors, a data store of places in the social-networking system, each place having a corresponding web page and being associated with at least one user of the social-networking system, wherein one or more of the places has a visibility state from a plurality of visibility states operative to control the visibility of the web page corresponding to a place, the visibility state controlling visibility of the web page to users of the social-networking system; analyzing, using the one or more processors, for a first place, user activity data associated with the first place to modulate the visibility state of the first place in the data store, the user activity data being associated with one or more users of the social-networking system, wherein the plurality of visibility states operative to control the visibility of the web page corresponding to a place comprises: a first visibility state wherein the web page is visible to all users in the social-networking system; a second visibility state wherein the web page is visible only to social contacts of one or more users associated with the place; a third visibility state wherein the web page is visible only to a creator of the place; and a fourth visibility state wherein the web page is hidden from all users of the social-networking system; setting an initial visibility state of the first place; updating a visibility score of the first place based on the user activity data associated with the first place; and updating the visibility state of the first place based at least on the visibility score of the first place. |