主权项 |
1. A method comprising:
by a first wireless device associated with a first user of a social-networking system, determining:
a first data type;one or more users authorized to receive data of the first data type, the authorized users being members of the social-networking system, wherein each authorized user is determined based on one or more attributes of one or more edges between nodes in a social graph of the social-networking system, one of the nodes corresponding to the first user and one or more other nodes corresponding respectively to each of the one or more authorized users; anda first distance from the first wireless device, wherein an authorized user of the one or more authorized users must be located within the first distance of the first wireless device in order to receive the data of the first data type; by the first wireless device, receiving from the social-networking system an indication that one of the authorized users has performed a check-in to a location that is within the first distance of the first wireless device; and by the first wireless device, sending, based on the received indication that the one of the authorized users has performed the check-in, the data of the first data type, wherein:
the data of the first data type is only available to one or more second wireless devices, wherein each of the second wireless devices is associated with an authorized user and is located within the first distance of the first wireless device; andthe data of the first data type is sent as part of a data encoding matrix, wherein the data encoding matrix comprises a first column vector corresponding to the data of the first data type and L redundant copies of another column vector corresponding to data of a second data type, wherein L is a positive integer. |