1. A computer-implemented method comprising: receiving, by a social networking system, location information for a device associated with a first user of the social networking system; receiving, by the social networking system, a privacy setting selection of a second user of the social networking system; determining whether the privacy setting selection permits obtaining second location information of the second user; responsive to determining that the privacy setting selection permits obtaining the second location information of the second user, obtaining, by the social networking system, the second location information for a second device associated with the second user; and responsive to the obtaining, sending, from the social networking system to the second user, a communication generated based at least in part on the location information.