摘要 |
Disclosed are a method and an apparatus for adding a friend. The method comprises: scanning to acquire a two-dimension code shared by a two-dimension code sharing user; parsing the two-dimension code to obtain a responsive user identifier; judging a relationship between the user identifier and a user identifier of the two-dimension code sharing user; and if the relationship is a stranger relationship, entering a friend adding interface, and adding the two-dimension code sharing user as a friend. The present invention is capable of avoiding leakage of user information. |