A relation chain processing method, characterized by: detecting, by a relation chain repair server, whether a forward-relationships set corresponding to a currently-detected user identifier and stored in each of multiple Internet data centers is consistent with a corresponding inverted-reverse-relationships set, the forward-relationships set comprising user identifiers of social friends added by the corresponding currently-detected user identifier; the reverse-relationships set comprising user identifiers that add the currently-detected user identifier as a social friend; and the inverted-reverse-relationships set includes the user identifiers corresponding to the reverse-relationships set that comprises the currently-detected user identifier; and performing, by the relation chain repair server, if the forward-relationships set corresponding to the currently-detected user identifier is not consistent with the corresponding inverted-reverse-relationships set, consistency repair on the inconsistent forward-relationships set and/or the corresponding reverse-relationships set; wherein the detecting whether a forward-relationships set corresponding to a currently-detected user identifier and stored in each Internet data center is consistent with a corresponding inverted-reverse-relationships set comprises: obtaining, from each Internet data center, a first XOR value between the user identifiers in the forward-relationships set corresponding to the currently-detected user identifier, and a second XOR value between the user identifiers in the corresponding reverse-relationships set; performing an XOR operation on the first XOR value from each Internet data center to obtain a first comparison value; performing an XOR operation on the second XOR value from each Internet data center to obtain a second comparison value; and determining whether the first comparison value is consistent with the second comparison value. detecting, by a relation chain repair server, whether a forward-relationships set corresponding to a currently-detected user identifier and stored in each of multiple Internet data centers is consistent with a corresponding inverted-reverse-relationships set, the forward-relationships set comprising user identifiers of social friends added by the corresponding currently-detected user identifier; the reverse-relationships set comprising user identifiers that add the currently-detected user identifier as a social friend; and the inverted-reverse-relationships set includes the user identifiers corresponding to the reverse-relationships set that comprises the currently-detected user identifier; and performing, by the relation chain repair server, if the forward-relationships set corresponding to the currently-detected user identifier is not consistent with the corresponding inverted-reverse-relationships set, consistency repair on the inconsistent forward-relationships set and/or the corresponding reverse-relationships set; wherein the detecting whether a forward-relationships set corresponding to a currently-detected user identifier and stored in each Internet data center is consistent with a corresponding inverted-reverse-relationships set comprises: obtaining, from each Internet data center, a first XOR value between the user identifiers in the forward-relationships set corresponding to the currently-detected user identifier, and a second XOR value between the user identifiers in the corresponding reverse-relationships set; performing an XOR operation on the first XOR value from each Internet data center to obtain a first comparison value; performing an XOR operation on the second XOR value from each Internet data center to obtain a second comparison value; and determining whether the first comparison value is consistent with the second comparison value. obtaining, from each Internet data center, a first XOR value between the user identifiers in the forward-relationships set corresponding to the currently-detected user identifier, and a second XOR value between the user identifiers in the corresponding reverse-relationships set; performing an XOR operation on the first XOR value from each Internet data center to obtain a first comparison value; performing an XOR operation on the second XOR value from each Internet data center to obtain a second comparison value; and determining whether the first comparison value is consistent with the second comparison value.