[go: up one dir, main page]

CN104123350B - A kind of method, equipment and the system of social networks management - Google Patents

A kind of method, equipment and the system of social networks management Download PDF

Info

Publication number
CN104123350B
CN104123350B CN201410325432.XA CN201410325432A CN104123350B CN 104123350 B CN104123350 B CN 104123350B CN 201410325432 A CN201410325432 A CN 201410325432A CN 104123350 B CN104123350 B CN 104123350B
Authority
CN
China
Prior art keywords
user
terminal
social networks
server
address list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410325432.XA
Other languages
Chinese (zh)
Other versions
CN104123350A (en
Inventor
胡常青
王晓晖
李彬
林五四
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd, Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201410325432.XA priority Critical patent/CN104123350B/en
Publication of CN104123350A publication Critical patent/CN104123350A/en
Priority to PCT/CN2015/073673 priority patent/WO2016004768A1/en
Application granted granted Critical
Publication of CN104123350B publication Critical patent/CN104123350B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例公开了一种社交关系管理的方法,包括:接收第一终端注册的第一用户,将第一用户存储到社交关系数据库,社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;接收第一终端上传的第一用户的通讯录,该通讯录中各个联系人与各自唯一的通讯标识一一对应;根据社交关系数据库中已注册的用户来获取该通讯录中的已注册联系人,将该通讯录中的已注册的联系人作为第一用户的关系人,添加该关系人到第一用户的社交关系中;将第一用户的社交关系发送到第二终端。采用本发明,可根据通讯录自动生成、更新社交关系,可减少社交电视侧的用户操作,可实现社交关系跨平台管理。

The embodiment of the present invention discloses a method for social relationship management, including: receiving the first user registered by the first terminal, storing the first user in the social relationship database, each registered user stored in the social relationship database and their unique One-to-one communication identification; receive the first user's address book uploaded by the first terminal, each contact in the address book corresponds to their unique communication identification; obtain the address book according to the registered users in the social relationship database Registered contacts in the address book, use the registered contacts in the address book as the first user's related person, add the related person to the first user's social relationship; send the first user's social relationship to the second terminal. With the present invention, social relations can be automatically generated and updated according to the address book, user operations on the social TV side can be reduced, and cross-platform management of social relations can be realized.

Description

一种社交关系管理的方法、设备及系统Method, device and system for social relationship management

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于社交电视的自动管理社交关系的方法。The invention relates to the communication field, in particular to a method for automatically managing social relations based on social television.

背景技术Background technique

在三网融合时代,社交电视和社交电视网络已初具社交传播的能力,用户越来越多的通过社交电视上的社交应用来进行互动,在社交电视网络上建立自己的社交关系网络。现有的社交电视提供的社交模式中好友关系的建立和管理是通过好友的搜索,推荐,请求,应答等操作来实现的,使得用户可以建立属于自己的朋友圈,丰富了用户使用社交电视时的娱乐体验。In the era of triple play, social TV and social TV networks have begun to have the ability to communicate socially. More and more users interact through social applications on social TV and build their own social network on social TV networks. The establishment and management of friend relationships in the social mode provided by the existing social TV is realized through operations such as friend search, recommendation, request, and response, so that users can establish their own circle of friends, which enriches the user experience when using social TV. entertainment experience.

但是,现有的社交电视技术,存在着遥控器输入不便,效率低下的问题。用户在建立社交关系网络时,需要通过遥控器输入好友名称来搜索好友,需要操作遥控器来发出好友请求、进行好友推荐等;当用户要管理的社交关系网络中存在多个好友时,需要通过遥控器多次反复的进行前述操作,操作繁琐,效率低下。However, the existing social TV technology has the problems of inconvenient remote control input and low efficiency. When a user establishes a social relationship network, he needs to input friend names through the remote control to search for friends, and he needs to operate the remote control to send friend requests and recommend friends; The remote controller repeatedly performs the aforementioned operations many times, which is cumbersome and inefficient.

发明内容Contents of the invention

本发明实施例所要解决的技术问题是提供一种社交关系管理的方法、设备及系统,可根据通讯录自动生成、更新社交关系,可减少社交电视侧的用户操作,可实现社交关系跨平台管理。The technical problem to be solved by the embodiments of the present invention is to provide a method, device and system for social relationship management, which can automatically generate and update social relationships according to the address book, reduce user operations on the social TV side, and realize cross-platform management of social relationships .

为解决上述问题,本发明的技术方案为:In order to solve the above problems, the technical solution of the present invention is:

本发明实施例提供了一种社交关系管理的方法,该方法包括三个方面的内容。其中一个方面为服务器侧的社交关系管理的方法,包括:An embodiment of the present invention provides a method for social relationship management, which includes three aspects. One of the aspects is a method for server-side social relationship management, including:

接收第一终端注册的第一用户,将所述第一用户存储到社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;receiving the first user registered by the first terminal, storing the first user in a social relationship database, and each registered user stored in the social relationship database corresponds to a unique communication identifier;

接收所述第一终端上传的所述第一用户的通讯录,所述通讯录中各个联系人与各自唯一的通讯标识一一对应;receiving the address book of the first user uploaded by the first terminal, where each contact in the address book has a one-to-one correspondence with each unique communication identifier;

根据社交关系数据库中已注册的用户来获取所述通讯录中的已注册联系人,将所述通讯录中的已注册的联系人作为所述第一用户的关系人,添加所述关系人到所述第一用户的社交关系中;Obtain the registered contacts in the address book according to the registered users in the social relationship database, use the registered contacts in the address book as the related persons of the first user, and add the related persons to the Among the social relationships of the first user;

将所述第一用户的社交关系发送到第二终端。Sending the social relationship of the first user to the second terminal.

其中另一个方面为第一终端侧的社交关系管理的方法,包括:Another aspect is a method for managing social relationships on the first terminal side, including:

接收第一输入在服务器上注册第一用户;所述第一用户由所述服务器存储于社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;Receive the first input and register the first user on the server; the first user is stored in a social relationship database by the server, and each registered user stored in the social relationship database has a one-to-one correspondence with each unique communication identification;

通过响应所述第一用户的通讯录的更新事件来读取所述第一用户的通讯录;所述通讯录中各个联系人与各自唯一的通讯标识一一对应;Reading the address book of the first user by responding to an update event of the address book of the first user; each contact in the address book has a one-to-one correspondence with each unique communication identifier;

上传所述第一用户的通讯录至所述服务器。uploading the address book of the first user to the server.

其中第三个方面为第二终端侧的社交关系管理的方法,包括:The third aspect is a method for managing social relationships on the second terminal side, including:

从服务器获取第一用户的社交关系;所述第一用户的社交关系为服务器通过上述所有内容中阐述的社交关系管理的方法而发送的社交关系,这里不再赘述;Obtaining the social relationship of the first user from the server; the social relationship of the first user is the social relationship sent by the server through the method of social relationship management described in all the above contents, and will not be repeated here;

将所述第一用户的社交关系提供给社交应用。The social relationships of the first user are provided to a social application.

本发明实施例提供了一种社交关系管理的设备,该设备包括三个方面的内容。其中一个方面为服务器,包括:An embodiment of the present invention provides a social relationship management device, which includes three aspects. One of these aspects is the server, including:

注册模块,用于接收第一终端注册的第一用户,将所述第一用户存储到社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;The registration module is used to receive the first user registered by the first terminal, and store the first user in a social relationship database, and each registered user stored in the social relationship database has a one-to-one correspondence with each unique communication identification;

通讯录接收模块,用于接收所述第一终端上传的所述第一用户的通讯录,所述通讯录中各个联系人与各自唯一的通讯标识一一对应;The address book receiving module is configured to receive the address book of the first user uploaded by the first terminal, and each contact in the address book corresponds to a unique communication identifier;

关系人获取模块,用于根据社交关系数据库中已注册的用户来获取所述通讯录中的已注册联系人,将所述通讯录中的已注册的联系人作为所述第一用户的关系人;A relationship acquisition module, configured to acquire registered contacts in the address book according to registered users in the social relationship database, and use the registered contacts in the address book as the relationship of the first user ;

关系人添加模块,添加所述关系人到所述第一用户的社交关系中;A related person adding module, adding the related person to the social relationship of the first user;

社交关系发送模块,用于将所述第一用户的社交关系发送到第二终端。A social relationship sending module, configured to send the social relationship of the first user to the second terminal.

其中另一个方面为第一终端,包括:Another aspect of which is the first terminal, including:

注册模块,用于接收第一输入在服务器上注册第一用户;所述第一用户由所述服务器存储于社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;The registration module is used to receive the first input and register the first user on the server; the first user is stored in the social relationship database by the server, and the registered users and their unique communication identifications stored in the social relationship database one-to-one correspondence;

通讯录读取模块,用于通过响应所述第一用户的通讯录的更新事件来读取所述第一用户的通讯录;所述通讯录中各个联系人与各自唯一的通讯标识一一对应;The address book reading module is used to read the address book of the first user by responding to the update event of the address book of the first user; each contact in the address book has a one-to-one correspondence with each unique communication identification ;

通讯录上传模块,用于上传所述第一用户的通讯录至所述服务器。An address book uploading module, configured to upload the address book of the first user to the server.

其中第三个方面为第二终端,包括:The third aspect is the second terminal, including:

社交关系获取模块,用于从服务器获取第一用户的社交关系;所述第一用户的社交关系为服务器通过上述所有内容阐述的社交关系管理的方法而发送的社交关系,这里不再赘述;The social relationship acquisition module is configured to acquire the social relationship of the first user from the server; the social relationship of the first user is a social relationship sent by the server through the method of social relationship management described in all the above contents, and will not be repeated here;

社交关系处理模块,用于将所述第一用户的社交关系提供给社交应用。A social relationship processing module, configured to provide the social relationship of the first user to a social application.

本发明实施例提供了一种社交关系管理的系统,该系统包括如上所有内容所述的服务器、第一终端和第二终端,这里不再赘述。An embodiment of the present invention provides a social relationship management system, which includes the server, the first terminal, and the second terminal as described above, which will not be repeated here.

通过实施本发明实施例,服务器接收第一终端注册的第一用户,接收第一终端上传的第一用户的通讯录,根据第一用户的通讯录和已注册的用户自动生成第一用户的社交关系,在第一用户的通讯录更新后,服务器根据第一终端上传的更新后的第一用户的通讯录来自动更新第一用户的社交关系,提供第一用户的社交关系给第二终端,可实现自动生成、更新社交关系,可减少社交电视侧的用户操作,可实现社交关系跨平台管理。By implementing the embodiment of the present invention, the server receives the first user registered by the first terminal, receives the first user's address book uploaded by the first terminal, and automatically generates the first user's social network according to the first user's address book and registered users. relationship, after the address book of the first user is updated, the server automatically updates the social relationship of the first user according to the updated address book of the first user uploaded by the first terminal, and provides the social relationship of the first user to the second terminal, It can automatically generate and update social relationships, reduce user operations on the social TV side, and realize cross-platform management of social relationships.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明的一种实施例提供的服务器侧的社交关系管理的方法的流程图;Fig. 1 is a flowchart of a method for managing social relationships on the server side provided by an embodiment of the present invention;

图2是本发明的一种实施例提供的第一终端侧的社交关系管理的方法的流程图;FIG. 2 is a flowchart of a method for managing social relationships on the first terminal side provided by an embodiment of the present invention;

图3是本发明的一种实施例提供的第二终端侧的社交关系管理的方法的流程图;FIG. 3 is a flow chart of a method for managing social relationships on the second terminal side provided by an embodiment of the present invention;

图4是本发明的另一种实施例提供的社交关系管理的方法的流程图;Fig. 4 is a flowchart of a method for managing social relationships provided by another embodiment of the present invention;

图5是本发明的一种实施例提供的服务器的结构示意图;Fig. 5 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图6是本发明的一种实施例提供的服务器的关系人添加模块的结构示意图;Fig. 6 is a schematic structural diagram of a related person adding module of a server provided by an embodiment of the present invention;

图7是本发明的一种实施例提供的服务器的关系人获取模块的结构示意图;Fig. 7 is a schematic structural diagram of a related person acquisition module of a server provided by an embodiment of the present invention;

图8是本发明的一种实施例提供的服务器的发送预处理模块的结构示意图;Fig. 8 is a schematic structural diagram of a sending preprocessing module of a server provided by an embodiment of the present invention;

图9是本发明的一种实施例提供的第一终端的结构示意图;FIG. 9 is a schematic structural diagram of a first terminal provided by an embodiment of the present invention;

图10是本发明的一种实施例提供的第二终端的结构示意图;FIG. 10 is a schematic structural diagram of a second terminal provided by an embodiment of the present invention;

图11是本发明的另一种实施例提供的服务器的结构示意图;Fig. 11 is a schematic structural diagram of a server provided by another embodiment of the present invention;

图12是本发明的另一种实施例提供的第一终端的结构示意图;FIG. 12 is a schematic structural diagram of a first terminal provided by another embodiment of the present invention;

图13是本发明的另一种实施例提供的第二终端的结构示意图;FIG. 13 is a schematic structural diagram of a second terminal provided by another embodiment of the present invention;

图14是本发明的一种实施例提供的社交关系管理系统的结构示意图。Fig. 14 is a schematic structural diagram of a social relationship management system provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

参见图1,是本发明的一种实施例提供的服务器侧的社交关系管理的方法。需要说明的是本发明实施例中的第一用户的通讯录既可以是手机终端上的电话簿,也可以是个人电脑中电子邮箱里的地址簿,还可以是其他通讯形式的通讯录。该方法可以包括:Referring to FIG. 1 , it is a server-side social relationship management method provided by an embodiment of the present invention. It should be noted that the address book of the first user in the embodiment of the present invention can be the phone book on the mobile terminal, the address book in the email box in the personal computer, or the address book in other forms of communication. The method can include:

步骤S101:接收第一终端注册的第一用户,将第一用户存储到社交关系数据库。Step S101: Receive a first user registered by a first terminal, and store the first user in a social relationship database.

具体地,服务器可接收用户在第一终端上输入的第一用户的注册信息,并可注册第一用户;第一用户与唯一的通讯标识一一对应,第一用户对应的通讯标识可以作为第一用户登录服务器的唯一身份标识;服务器可以为社交电视网络服务器。第一终端可根据第一用户对应的通讯标识来注册第一用户,可将该通讯标识作为第一用户的账号在服务器上的注册第一用户。例如,第一终端根据第一用户的手机号码在服务器上注册第一用户的账号,将该手机号码作为第一用户对应的唯一的通讯标识。又例如,第一终端根据第一用户的电子邮箱在服务器上注册第一用户的账号,将该电子邮箱作为第一用户对应的唯一的通讯标识。Specifically, the server may receive the registration information of the first user input by the user on the first terminal, and may register the first user; the first user is in one-to-one correspondence with the unique communication identification, and the communication identification corresponding to the first user may be used as the second communication identification. A unique identifier for a user to log in to the server; the server may be a social television network server. The first terminal may register the first user according to the communication identification corresponding to the first user, and may use the communication identification as the account of the first user to register the first user on the server. For example, the first terminal registers the account of the first user on the server according to the mobile phone number of the first user, and uses the mobile phone number as a unique communication identifier corresponding to the first user. For another example, the first terminal registers the account of the first user on the server according to the email address of the first user, and uses the email address as the unique communication identifier corresponding to the first user.

具体地,服务器可将第一用户存储到社交关系数据库,该社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应。社交关系数据库可以包括已注册的第一用户和已注册的其他用户;社交关系数据库中的已注册的用户都对应唯一的通讯标识,不同的通讯标识对应不同的已注册用户。例如,社交关系数据库中已注册用户A的账号为电话号码“13511112222”,社交关系数据库中已注册用户B的账号为电话号码“13611112222”。又例如,社交关系数据库中已注册用户C的账号为Google邮箱C@gmail.com,社交关系数据库中已注册用户D的账号为Yahoo邮箱D@yahoo.com。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the server may store the first user in a social relationship database, and each registered user stored in the social relationship database has a one-to-one correspondence with each unique communication identifier. The social relationship database may include the registered first user and other registered users; the registered users in the social relationship database all correspond to unique communication IDs, and different communication IDs correspond to different registered users. For example, the account number of the registered user A in the social relationship database is the phone number "13511112222", and the account number of the registered user B in the social relationship database is the phone number "13611112222". For another example, the account of registered user C in the social relationship database is Google mailbox C@gmail.com, and the account of registered user D in the social relationship database is Yahoo mailbox D@yahoo.com. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

具体的,服务器在接收第一终端注册的第一用户之后,可按预定的加密算法根据第一用户的注册信息产生身份凭证,并可将该身份凭证发送给第一终端;该身份凭证与第一用户一一对应;该身份凭证由第一终端用来上传第一用户的通讯录。其中,服务器可以提取第一用户注册信息中的账号,可对第一用户的注册账号按某种算法进行处理,使第一用户的注册账号转换成为一段不可读的代码,并可将该不可读的代码作为第一用户的身份凭证,该不可读的代码与第一用户的账号是一一对应的;服务器可通过第一用户的身份凭证逆向解析出第一用户的账号。例如,服务器从已注册用户A的注册信息中提取出用户的A的电话号码“13511112222”,并将A的电话号码按照MD5算法转换成32位的代码“78F09384FAB3ED3E9416F5CDD0A2EF59”,该32位代码就为用户A的身份凭证。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。服务器在产生第一用户的身份凭整之后,可在第一终端根据第一用户的账号登录服务器时将第一用户的身份凭证发给第一终端;第一终端接收服务器发送的第一用户的身份凭证,可根据第一用户的身份凭证将第一用户的通讯录上传到服务器。Specifically, after receiving the first user registered by the first terminal, the server can generate an identity certificate according to the registration information of the first user according to a predetermined encryption algorithm, and can send the identity certificate to the first terminal; One-to-one correspondence between users; the identity certificate is used by the first terminal to upload the address book of the first user. Among them, the server can extract the account number in the registration information of the first user, and can process the registered account number of the first user according to a certain algorithm, so that the registered account number of the first user can be converted into an unreadable code, and the unreadable code can be The code is used as the identity certificate of the first user, and the unreadable code is in one-to-one correspondence with the account number of the first user; the server can reversely analyze the account number of the first user through the identity certificate of the first user. For example, the server extracts user A's phone number "13511112222" from the registered user A's registration information, and converts A's phone number into a 32-digit code "78F09384FAB3ED3E9416F5CDD0A2EF59" according to the MD5 algorithm. A's identity credentials. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations. After the server generates the first user's identity certificate, it can send the first user's identity certificate to the first terminal when the first terminal logs in to the server according to the first user's account; the first terminal receives the first user's identity certificate sent by the server. The identity credential can upload the address book of the first user to the server according to the identity credential of the first user.

步骤S103:接收第一终端上传的第一用户的通讯录。Step S103: Receive the address book of the first user uploaded by the first terminal.

具体地,在第一终端根据第一用户的账号登录服务器之后,服务器可接收所述第一终端上传的第一用户的通讯录,该通讯录中各个联系人与各自唯一的通讯标识一一对应。在接收第一用户的通讯录之前,如果服务器上已存储有第一用户的通讯录,则可以用第一用户的新的通讯录来覆盖已有的第一用户的通讯录,服务器上可只保存第一用户的最新的通讯录;另外,服务器上还可以存储其他已注册用户的最新的通讯录。第一用户的通讯录中的联系人可作为第一用户在社交网络上进行社交活动的社交关系的基础,第一用户的通讯录中的各个联系人都各自对应有唯一的通讯标识,即第一用户的通讯录中不同的通讯标识都可对应着第一用户的不同的联系人;当第一用户通讯录中某个联系人的通讯标识同时存在于在服务器的上述社交关系数据库中,则该联系人也为第一用户在社交网络中的关系人,属于第一用户的社交关系。第一用户在服务器上对应的通讯标识可与通讯录中联系人对应的通讯标识采用一致的形式。例如,第一用户在第一终端上的通讯录为电话簿,该电话簿中有第一用户的联系人A,联系人A以A的电话号码“13511112222”来标识,该电话簿中还有第一用户的联系人B,联系人B以B的电话号码“13611112222”来标识,则第一终端在服务器上注册的第一用户对应的通讯标识为第一用户的电话号码。又例如,第一用户在第一终端上的通讯录为电子邮箱构成的地址簿,该地址簿中有第一用户的联系人A,联系人A以A的Google邮箱A@gmail.com来标识,该电话簿中还有第一用户的联系人B,联系人B以B的Yahoo邮箱B@yahoo.com来标识,则第一终端在服务器上注册的第一用户对应的通讯标识为第一用户的电子邮箱。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, after the first terminal logs in to the server according to the first user's account, the server may receive the first user's address book uploaded by the first terminal, and each contact in the address book corresponds to its unique communication ID . Before receiving the address book of the first user, if the address book of the first user has been stored on the server, then the new address book of the first user can be used to overwrite the existing address book of the first user. The latest address book of the first user is saved; in addition, the latest address book of other registered users can also be stored on the server. The contacts in the first user's address book can be used as the basis of the social relationship for the first user to perform social activities on the social network, and each contact in the first user's address book corresponds to a unique communication identifier, that is, the first Different communication identifiers in a user's address book can correspond to different contacts of the first user; The contact person is also a related person of the first user in the social network and belongs to the social relationship of the first user. The communication identifier corresponding to the first user on the server may be in the same form as the communication identifier corresponding to the contact in the address book. For example, the address book of the first user on the first terminal is a phone book, and there is a contact A of the first user in the phone book, and the contact A is identified by A's phone number "13511112222", and the phone book also has The contact B of the first user is identified by B's phone number "13611112222", and the communication ID corresponding to the first user registered by the first terminal on the server is the phone number of the first user. For another example, the address book of the first user on the first terminal is an address book composed of electronic mailboxes, in which there is a contact A of the first user, and the contact A is identified by A's Google mailbox A@gmail.com , there is also a contact B of the first user in the phone book, and the contact B is identified by B’s Yahoo mailbox B@yahoo.com, then the communication identification corresponding to the first user registered on the server by the first terminal is the first User's email address. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

具体的,在接收第一终端上传的第一用户的通讯录之前,服务器接收第一终端发送的身份凭证;并对该身份凭证进行鉴权,如果在社交关系数据库中找到该身份凭证对应的第一用户,则判定鉴权成功。如步骤S101中所述,在服务器接收第一终端注册的第一用户之后,服务器根据第一用户的注册信息来产生第一用户的身份凭证。当服务器接收到第一终端上传的身份凭证之后,服务器可通过逆向解析得出第一用户的身份凭证对应的通讯标识,可遍历社交关系数据库来识别该通讯标识,如果该通讯标识与第一用户对应的通讯标识一致,则可判定第一终端发送的身份凭证对应服务器上的第一用户,接收第一终端上传的通讯录,可视该通讯录为第一用户的通讯录。Specifically, before receiving the address book of the first user uploaded by the first terminal, the server receives the identity certificate sent by the first terminal; and authenticates the identity certificate. a user, it is determined that the authentication is successful. As described in step S101, after the server receives the first user registered by the first terminal, the server generates the identity credential of the first user according to the registration information of the first user. After the server receives the identity certificate uploaded by the first terminal, the server can obtain the communication identifier corresponding to the identity certificate of the first user through reverse analysis, and can traverse the social relationship database to identify the communication identifier. If the corresponding communication identifiers are consistent, it can be determined that the identity certificate sent by the first terminal corresponds to the first user on the server, and the address book uploaded by the first terminal is received, and the address book can be regarded as the address book of the first user.

具体的,服务器可通过第一用户的通讯录和其他已注册用户的通讯录来自动新建第一用户的社交关系;服务器还可以根据第一用户的通讯录来自动更新第一用户已有的社交关系。Specifically, the server can automatically create the first user's social relationship through the first user's address book and other registered user's address books; the server can also automatically update the first user's existing social relationship according to the first user's address book. relation.

步骤S105:根据社交关系数据库中已注册的用户来获取第一用户的通讯录中的已注册联系人,将第一用户的通讯录中的已注册的联系人作为第一用户的关系人,添加到第一用户的社交关系中。Step S105: Obtain the registered contacts in the first user's address book according to the registered users in the social relationship database, and use the registered contacts in the first user's address book as the related persons of the first user, and add into the social relationships of the first user.

具体的,服务器可遍历第一用户的通讯录中的联系人,当在社交关系数据库中找到已注册的用户对应的通讯标识与该联系人对应的通讯标识一致时,将该联系人归为第一用户的通讯录中的已注册的联系人。服务器可从第一用户的通讯录中的第一位联系人开始,在社交关系数据库中寻找第一位联系人对应的通讯标识,如果在社交关系数据库中找到已注册用户对应的通讯标识与第一位联系人的通讯标识一致,则可判定第一位联系人在服务器上已注册,将第一位联系人归为第一用户的通讯录中的已注册的联系人,然后结束当前第一位联系人的判断过程;如果在社交关系数据库中没有找到已注册用户对应的通讯标识与第一位联系人的通讯标识一致,则可判定第一位联系人在服务器上没有注册,然后结束当前第一位联系人的判断过程;依此类推,直至第一用户的通讯录中的最后一个联系人,则可结束整个获取第一用户的通讯录中的已注册联系人的过程,可获取第一用户的通讯录中的全部已注册联系人。Specifically, the server may traverse the contacts in the address book of the first user, and when it finds in the social relationship database that the communication ID corresponding to the registered user is consistent with the communication ID corresponding to the contact, classify the contact as the first A registered contact in a user's address book. The server can start from the first contact in the address book of the first user, and search for the communication ID corresponding to the first contact in the social relationship database, if the communication ID corresponding to the registered user is found in the social relationship database If the communication ID of a contact is consistent, it can be determined that the first contact has been registered on the server, and the first contact is classified as a registered contact in the first user's address book, and then the current first contact is terminated. The judging process of a contact; if the communication ID corresponding to the registered user is not found in the social relationship database to be consistent with the communication ID of the first contact, it can be determined that the first contact is not registered on the server, and then end the current The judgment process of the first contact; and so on, until the last contact in the first user's address book, then the whole process of obtaining the registered contacts in the first user's address book can be completed, and the second can be obtained. All registered contacts in a user's address book.

具体的,服务器可判定第一用户的通讯录中的已注册联系人为第一用户在社交网络中的关系人,可将该关系人添加到第一用户的社交关系中。Specifically, the server may determine that the registered contact in the address book of the first user is a related person of the first user in the social network, and may add the related person to the social relationship of the first user.

具体的,第一用户的社交关系可包括第一社交关系和第二社交关系中的至少一种。服务器可根据第一用户与第一用户的关系人的联系不同将社交关系分为第一社交关系和第二社交关系,其中,第一社交关系可为第一用户的好友圈,第二社交关系可为第一用户的关注圈;对于第一用户的关系人,如果该关系人的通讯录中包括第一用户的通讯标识,服务器则可判定该关系人为第一用户的好友,将该关系人归于第一用户的好友圈;如果该关系人的通讯录中不包括第一用户的通讯标识,则可判断该关系人为第一用户的关注对象,将该关系人归于第一用户的关注圈。例如,服务器上的用户都是用电话号码注册的账号,用户A的电话簿中有用户B的电话号码,同时,用户B的电话簿中也有用户A的电话号码,其中,用户A与用户B都已在服务器上注册,则用户A与用户B在社交网络中互为好友。又例如,用户C的电话簿中有用户D的电话号码,但是,用户D的电话簿中没有用户C的电话号码,其中,用户C与用户D都已在服务器上注册,则用户D是用户C在社交网络上的关注对象,用户C是用户D的崇拜者。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the social relationship of the first user may include at least one of the first social relationship and the second social relationship. The server may divide the social relationship into a first social relationship and a second social relationship according to the connection between the first user and the first user's related person, wherein the first social relationship may be the first user's circle of friends, and the second social relationship may be the first social relationship. It can be the circle of attention of the first user; for the related person of the first user, if the address book of the related person includes the communication identification of the first user, the server can determine that the related person is a friend of the first user, and the related person Belonging to the circle of friends of the first user; if the address book of the related person does not include the communication identifier of the first user, it can be determined that the related person is the first user's follow object, and the related person is attributed to the first user's follow circle. For example, all users on the server are accounts registered with phone numbers. User A's phone book contains user B's phone number. At the same time, user B's phone book also has user A's phone number. Among them, user A and user B Both have been registered on the server, then user A and user B are friends of each other in the social network. For another example, user C's phone book has user D's phone number, but user D's phone book does not have user C's phone number, where both user C and user D have registered on the server, then user D is user C's followers on social networks, user C is an admirer of user D. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

具体的,当第一用户的社交关系包括第一社交关系时,服务器获取上述已注册的联系人的通讯录,上述已注册的联系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第一社交关系中;当第一用户的社交关系包括第二社交关系时,服务器获取上述已注册的联系人的通讯录,上述已注册的联系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识不存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第二社交关系中。Specifically, when the social relationship of the first user includes the first social relationship, the server obtains the address book of the above-mentioned registered contacts, and each contact in the address book of the above-mentioned registered contacts has its own unique communication identifier— Corresponding; when the communication identification corresponding to the first user exists in the address book of the above-mentioned registered contact, add the above-mentioned registered contact to the first social relationship of the first user; when the social relationship of the first user includes the first social relationship In the case of a social relationship, the server obtains the address book of the above-mentioned registered contacts, and each contact in the address book of the above-mentioned registered contacts has a one-to-one correspondence with their own unique communication identification; when the communication identification corresponding to the first user does not exist Adding the registered contact to the second social relationship of the first user in the address book of the registered contact.

具体的,服务器可将第一用户的通讯录中所有已注册的联系人视为第一用户的社交网络中的关系人,当第一用户的社交关系包括第一社交关系时,服务器从第一用户的第一个已注册的联系人开始,获取第一个已注册的联系人的通讯录,如果在第一个已注册的联系人的通讯录中找到第一用户对应的通讯标识,则可判定第一个已注册的联系人属于第一用户在社交网络中的好友圈,可将第一个已注册的联系人添加到第一用户的第一社交关系中,并可将第一用户添加到第一个已注册的联系人的第一社交关系中;可依照前述过程添加第一用户的下一个已注册的联系人,直至第一用户的通讯录中的最后一个已注册的联系人;其中,已注册的联系人的通讯录中通讯标识可用以建立该已注册的联系人在社交网络中的社交关系,已注册的联系人的通讯录中的各个通讯标识是唯一的,与已注册的联系人的通讯录中的各个联系人一一对应。无论是在第一次自动生成第一用户的社交关系时,还是在自动更新第一用户的社交关系时,服务器都可依照前述过程添加第一用户的第一社交关系。例如,服务器上的用户都是用电话号码注册的账号,用户通过手机上传了更新后的第一用户的电话簿,第一用户的电话簿中新增了已注册的联系人:用户A、用户B和用户C,并且用户A、用户B和用户C的通讯录中都包括第一用户的电话号码,服务器判定用户A、用户B和用户C属于第一用户的好友圈,服务器将用户A、用户B和用户C添加到第一用户的第一社交关系中,并分别在用户A、用户B和用户C的好友圈中添加第一用户。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the server may regard all registered contacts in the address book of the first user as related persons in the social network of the first user, and when the social relationship of the first user includes the first Start with the first registered contact of the user, obtain the address book of the first registered contact, if the communication ID corresponding to the first user is found in the address book of the first registered contact, then you can It is determined that the first registered contact belongs to the first user's circle of friends in the social network, the first registered contact can be added to the first social relationship of the first user, and the first user can be added To the first social relationship of the first registered contact; the next registered contact of the first user can be added according to the aforementioned process, until the last registered contact in the first user's address book; Among them, the communication identification in the address book of the registered contact can be used to establish the social relationship of the registered contact in the social network, and each communication identification in the address book of the registered contact is unique, and is different from the registered contact. There is a one-to-one correspondence between each contact in the address book of your contacts. Whether when automatically generating the first user's social relationship for the first time or when automatically updating the first user's social relationship, the server may add the first user's first social relationship according to the aforementioned process. For example, all users on the server are accounts registered with phone numbers, and the user uploads the updated phonebook of the first user through the mobile phone, and registered contacts are added to the phonebook of the first user: user A, user B and user C, and the address books of user A, user B, and user C all include the phone number of the first user. User B and user C are added to the first social relationship of the first user, and the first user is added to the friend circles of user A, user B and user C respectively. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

具体的,服务器可将第一用户的通讯录中所有已注册的联系人视为第一用户的社交网络中的关系人,当第一用户的社交关系包括第二社交关系时,服务器从第一用户的第一个已注册的联系人开始,获取第一个已注册的联系人的通讯录,如果在第一个已注册的联系人的通讯录中没有第一用户对应的通讯标识,则可判定第一个已注册的联系人属于第一用户在社交网络中的关注对象,可将第一个已注册的联系人添加到第一用户的第二社交关系中;可依照前述过程添加第一用户的下一个已注册的联系人,直至第一用户的通讯录中的最后一个已注册的联系人;其中,已注册的联系人的通讯录中通讯标识可用以建立该已注册的联系人在社交网络中的社交关系,已注册的联系人的通讯录中的各个通讯标识是唯一的,与已注册的联系人的通讯录中的各个联系人一一对应。无论是在第一次自动生成第一用户的社交关系时,还是在自动更新第一用户的社交关系时,服务器都可依照前述过程添加第一用户的第二社交关系。例如,服务器上的用户都是用电话号码注册的账号,用户通过手机第一次上传第一用户的电话簿,第一用户的电话簿中有一个已注册的联系人用户A,但是,用户A的通讯录中没有第一用户的电话号码,则服务器判定用户A属于第一用户的关注对象,同时,第一用户为用户A的崇拜者,服务器将用户A添加到第一用户的关注列表中,将第一用户添加到用户A的崇拜者列表中。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the server may regard all registered contacts in the address book of the first user as related persons in the social network of the first user. When the social relationship of the first user includes the second Start with the user's first registered contact, get the address book of the first registered contact, if there is no communication ID corresponding to the first user in the address book of the first registered contact, you can It is determined that the first registered contact belongs to the first user's attention object in the social network, and the first registered contact can be added to the first user's second social relationship; the first registered contact can be added according to the aforementioned process. The next registered contact of the user, up to the last registered contact in the address book of the first user; wherein, the communication identifier in the address book of the registered contact can be used to establish the registered contact in the For the social relationship in the social network, each communication identifier in the address book of the registered contact is unique and corresponds to each contact in the address book of the registered contact. No matter when the first user's social relationship is automatically generated for the first time or when the first user's social relationship is automatically updated, the server can add the first user's second social relationship according to the aforementioned process. For example, all users on the server are accounts registered with phone numbers. The user uploads the phonebook of the first user through the mobile phone for the first time. There is a registered contact user A in the phonebook of the first user. However, user A If there is no phone number of the first user in the address book, the server will determine that user A belongs to the first user's attention object, and at the same time, the first user is an admirer of user A, and the server will add user A to the first user's attention list , add the first user to user A's admirer list. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

另外的,基于所述第一用户的社交关系,服务器可遍历所述第一用户的关系人,当该关系人对应的通讯标识已不存在于所述第一用户的通讯录中,则可将该关系人从第一用户的社交关系中删除;其中,第一用户的关系人与各自唯一的通讯标识一一对应。第一用户的社交关系可以存储于服务器的社交关系数据库中,第一用户的社交关系中可包括第一用户所有关系人。当第一用户的通讯录发生更新后,第一终端向服务器上传第一用户的通讯录;服务器根据第一用户的更新后的通讯录,可将第一用户在社交关系数据库中过时的社交关系进行更新,可删除第一用户的社交关系中与第一用户没有社交联系的关系人。具体的,基于上述内容,第一用户的社交关系包括第一社交关系和第二社交关系,服务器可根据第一用户的通讯录来删除第一社交关系中的关系人或者第二社交关系中的关系人。服务器可通过遍历第一用户的第一社交关系中的关系人,如果该关系人对应的通讯标识已不存在于第一用户的更新后的通讯录中,则可判定该关系人与第一用户的社交联系发生变化,可将该关系人从第一用户的第一社交关系中删除,并可从该关系人的第一社交关系中删除第一用户;服务器还可通过遍历第一用户的第二社交关系中的关系人,如果该关系人对应的通讯标识已不存在于第一用户的更新后的通讯录中,则可判定该关系人与第一用户不再有社交联系,可将该关系人从第一用户的第二社交关系中删除。例如,服务器上的用户都是用电话号码注册的账号,第一用户在社交网络中的好友列表中包括用户A,但是,第一用户的更新后的电话簿中已经没有用户A的电话号码,则服务器判定第一用户与用户A不再互为好友,将用户A从第一用户的好友列表中删除,将第一用户从用户A的好友列表中删除。又例如,服务器上的用户都是用电子邮箱注册的账号,第一用户在社交网络中的关注列表中包括用户A,但是,第一用户的更新后的地址簿中已经没有用户A的电子邮箱,则服务器判定第一用户不再关注用户A,将用户A从第一用户的关注列表中删除,将第一用户从用户A的崇拜者列表中删除。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。In addition, based on the social relationship of the first user, the server can traverse the related persons of the first user, and when the communication identification corresponding to the related person no longer exists in the address book of the first user, the server can The related person is deleted from the social relationship of the first user; wherein, the related person of the first user has a one-to-one correspondence with each unique communication identifier. The social relationship of the first user may be stored in a social relationship database of the server, and the social relationship of the first user may include all related persons of the first user. When the address book of the first user is updated, the first terminal uploads the address book of the first user to the server; the server can update the outdated social relationship of the first user in the social relationship database according to the updated address book of the first user Updating is performed to delete related persons who have no social connection with the first user in the social relationship of the first user. Specifically, based on the above content, the social relationship of the first user includes the first social relationship and the second social relationship, and the server can delete the related person in the first social relationship or the related person in the second social relationship related person. The server can traverse the related person in the first social relationship of the first user, and if the communication identification corresponding to the related person no longer exists in the updated address book of the first user, then it can determine that the related person is related to the first user. If the social connection of the related person changes, the related person can be deleted from the first social relationship of the first user, and the first user can be deleted from the first social relationship of the related person; the server can also traverse the first user’s first social relationship 2. For a related person in a social relationship, if the communication identification corresponding to the related person no longer exists in the first user's updated address book, it can be determined that the related person no longer has a social connection with the first user, and the The related person is deleted from the second social relationship of the first user. For example, the users on the server are all accounts registered with phone numbers, and the first user includes user A in the friend list in the social network, but there is no user A's phone number in the updated phone book of the first user, Then the server determines that the first user and user A are no longer mutual friends, deletes user A from the first user's friend list, and deletes the first user from user A's friend list. For another example, all users on the server are accounts registered with e-mail addresses, and the first user's follow list in the social network includes user A, but there is no e-mail address of user A in the first user's updated address book. , the server determines that the first user no longer pays attention to user A, deletes user A from the first user's following list, and deletes the first user from user A's admirer list. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

步骤S107:将第一用户的社交关系发送到第二终端。Step S107: Sending the social relationship of the first user to the second terminal.

具体的,在服务器将第一用户的社交关系发送到第二终端之前,包括:服务器可接收第二终端发送的获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证;服务器解析身份凭证来获取身份凭证对应的第一用户;服务器搜索社交关系数据库来获取第一用户的社交关系。Specifically, before the server sends the social relationship of the first user to the second terminal, it includes: the server may receive the request sent by the second terminal to obtain the social relationship of the first user, and the request includes the identity certificate corresponding to the first user ; The server parses the identity certificate to obtain the first user corresponding to the identity certificate; the server searches the social relationship database to obtain the social relationship of the first user.

具体的,如步骤S101中所描述的内容,服务器可根据第一用户的注册信息来生成第一用户对应的身份凭证,并将该身份凭证发送给第一终端。第二终端可从第一终端获取第一用户对应的身份凭证,之后,第二终端可直接根据该身份凭证向服务器发送请求来获取第一用户的社交关系;服务器可逆向解析出该身份凭证对应的用户的注册账号,可根据该注册账号在社交关系管理中匹配出该身份凭证对应的用户为第一用户,在社交关系数据库中获取第一用户对应的社交关系,将该社交关系发送给第二终端。例如,服务器接收到社交电视发送的32位的身份凭证“78F09384FAB3ED3E9416F5CDD0A2EF59”,该32位代码是将用户对应的社交账号按照MD5算法产生的,服务器解析出该社交账号为“13511112222”,并在社交关系数据库中获取社交账号“13511112222”对应的好友列表、关注列表和粉丝列表,将其发给社交电视。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, as described in step S101, the server may generate an identity credential corresponding to the first user according to the registration information of the first user, and send the identity credential to the first terminal. The second terminal can obtain the identity certificate corresponding to the first user from the first terminal, and then, the second terminal can directly send a request to the server according to the identity certificate to obtain the social relationship of the first user; the server can reversely analyze the identity certificate corresponding to According to the registered account number in the social relationship management, the user corresponding to the identity credential can be matched as the first user, and the social relationship corresponding to the first user can be obtained in the social relationship database, and the social relationship can be sent to the first user. Two terminals. For example, the server receives the 32-digit identity credential "78F09384FAB3ED3E9416F5CDD0A2EF59" sent by the social TV. The 32-digit code is generated from the social account corresponding to the user according to the MD5 algorithm. The friend list, follow list and follower list corresponding to the social account number "13511112222" are acquired from the database, and are sent to the social TV. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

参见图2,是本发明的一种实施例提供的第一终端侧的社交关系管理的方法。需要说明的是本发明实施例中的第一用户的通讯录既可以是手机终端上的电话簿,也可以是个人电脑中电子邮箱里的地址簿,还可以是其他通讯形式的通讯录。该方法可以包括:Referring to FIG. 2 , it is a method for managing social relationships at the first terminal side provided by an embodiment of the present invention. It should be noted that the address book of the first user in the embodiment of the present invention can be the phone book on the mobile terminal, the address book in the email box in the personal computer, or the address book in other forms of communication. The method can include:

步骤S201:接收第一输入在服务器上注册第一用户。Step S201: receiving a first input and registering the first user on the server.

具体地,第一终端既可以是手机、平板电脑等移动终端,还可以是个人计算机;第一输入可用于输入在服务器上注册第一用户。第一终端接收用户输入的第一用户的注册信息,可将该注册信息发送至服务器端来完成第一用户在社交网络上的注册;其中,第一终端可通过社交应用的客户端来收集第一用户的注册信息。Specifically, the first terminal may be a mobile terminal such as a mobile phone or a tablet computer, or a personal computer; the first input may be used to input and register the first user on the server. The first terminal receives the registration information of the first user input by the user, and can send the registration information to the server to complete the registration of the first user on the social network; wherein, the first terminal can collect the first user through the client of the social application A user's registration information.

具体的,在上述接收第一输入在服务器上注册第一用户之后,第一终端可接收服务器发送的身份凭证,并发送该身份凭证至第二终端;该身份凭证由服务器按预定的加密算法根据第一用户的注册信息产生的身份凭证;该身份凭证与第一用户一一对应。如步骤S101中所述,服务器可按预定的加密算法根据第一用户的注册信息产生身份凭证,并可将该身份凭证发送给第一终端;第一终端可在接收服务器发送的第一用户对应的身份凭证之后,将该身份凭证发送给第二终端。Specifically, after receiving the first input and registering the first user on the server, the first terminal can receive the identity certificate sent by the server and send the identity certificate to the second terminal; the identity certificate is encrypted by the server according to a predetermined encryption algorithm. An identity credential generated from the registration information of the first user; the identity credential is in one-to-one correspondence with the first user. As described in step S101, the server can generate an identity credential according to a predetermined encryption algorithm according to the registration information of the first user, and can send the identity credential to the first terminal; After the identity credential, the identity credential is sent to the second terminal.

具体的,在上述发送身份凭证至第二终端之前,第一终端可向第二终端发送配对请求,根据第二终端提示的配对验证码,接收与配对验证码一致的第三输入来完成配对。其中,第三输入可用于输入第二终端提示的配对验证码;该配对验证码可以由第二终端通过显示设备提示用户,也可以由第二终端以短信的方式提示用户,还可以是其他提示用户的方式,这里不作限制。第一终端可将接收的用户的第三输入返回给第二终端;如果第二终端判定第一终端接收的第三输入与配对验证码一致,则接受第一终端的配对请求,完成配对。Specifically, before sending the identity credential to the second terminal, the first terminal may send a pairing request to the second terminal, and receive a third input consistent with the pairing verification code according to the pairing verification code prompted by the second terminal to complete the pairing. Wherein, the third input can be used to input the pairing verification code prompted by the second terminal; the pairing verification code can be prompted by the second terminal to the user through the display device, or can be prompted by the second terminal in the form of a text message, or other prompts The way of the user is not limited here. The first terminal may return the received third input from the user to the second terminal; if the second terminal determines that the third input received by the first terminal is consistent with the pairing verification code, it accepts the pairing request of the first terminal and completes the pairing.

具体的,在上述向第二终端发送配对请求之前,第一终端可扫描当前预定的短程通信网络,接收第四输入与第二终端建立短程通信连接;第二终端在该短程通信网络之中。其中,该短程通信网络可为数字生活网络联盟DLNA中支持的网络形式,第四输入可用于触发第一终端向第二终端发送建立连接请求;第一终端可以监测同一短程通信网络中的设备,一旦发现第二终端也存在于该短程通信网络中,可接收用户输入来与第二终端建立短程通信连接。第一终端可以通过用户交互界面向用户呈现出当前短程通信网络中的所有设备,并可接受用户在该用户交互界面上的操作,向第二终端发起建立连接的请求,如果第二终端同意与第一终端建立连接,则第一终端可触发执行上述向第二终端发送配对请求的步骤。Specifically, before sending the pairing request to the second terminal, the first terminal may scan the currently scheduled short-range communication network, and receive the fourth input to establish a short-range communication connection with the second terminal; the second terminal is in the short-range communication network. Wherein, the short-range communication network may be in the form of a network supported by the Digital Living Network Alliance DLNA, and the fourth input may be used to trigger the first terminal to send a connection establishment request to the second terminal; the first terminal may monitor devices in the same short-range communication network, Once it is found that the second terminal also exists in the short-range communication network, a user input may be received to establish a short-range communication connection with the second terminal. The first terminal can present all devices in the current short-range communication network to the user through the user interaction interface, and accept the user's operation on the user interaction interface, and initiate a connection establishment request to the second terminal, if the second terminal agrees with the When the first terminal establishes a connection, the first terminal may trigger the execution of the above-mentioned step of sending a pairing request to the second terminal.

步骤S203:通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录。Step S203: Read the address book of the first user by responding to an update event of the address book of the first user.

具体的,在上述通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录之前,第一终端还可以执行:监测第一用户的通讯录的更新事件;该更新事件包括:添加、删除或编辑第一用户的通讯录中的联系人。第一终端可以通过给第一用户的通讯录注册监听器来监测第一用户的通讯录的更新事件,当第一用户的通讯录被修改时,该监听器可以捕捉到第一用户的通讯录的更新事件。为了响应前述第一用户的通讯录的更新事件,第一终端可以通过用户交互界面提示用户去上传更新后的第一用户的通讯录,然后,第一终端可以读取更新后的第一用户的通讯录。Specifically, before reading the address book of the first user by responding to the update event of the address book of the first user, the first terminal may further perform: monitoring the update event of the address book of the first user; the update event includes: Add, delete or edit contacts in the first user's address book. The first terminal can monitor the update event of the first user's address book by registering a listener for the first user's address book, and when the first user's address book is modified, the listener can capture the first user's address book update event. In order to respond to the above-mentioned update event of the address book of the first user, the first terminal may prompt the user to upload the updated address book of the first user through the user interface, and then, the first terminal may read the updated address book of the first user. address book.

另外,在上述通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录之前,接收第二输入来获得读取第一用户的通讯录的授权,根据该授权来读取第一用户的通讯录。第二输入可用于授权给第一终端读取第一用户的通讯录。第一终端可以通过应用程序来接收用户的读取通讯录的授权,应用程序需告知用户读取通讯录的目的,以及为用户保密其通讯录的承诺。在获取用户授权后,第一终端可读取第一用户的通讯录。In addition, before reading the address book of the first user by responding to the update event of the address book of the first user, the second input is received to obtain the authorization to read the address book of the first user, and the first user is read according to the authorization. A user's address book. The second input may be used to authorize the first terminal to read the address book of the first user. The first terminal can receive the user's authorization to read the address book through the application program, and the application program needs to inform the user of the purpose of reading the address book and promise to keep the address book confidential for the user. After obtaining user authorization, the first terminal can read the address book of the first user.

步骤S205:上传第一用户的通讯录至服务器。Step S205: Upload the address book of the first user to the server.

具体的,第一终端可使用第一用户对应的身份凭证向服务器上传第一用户的通讯录。通讯录上传的格式可以采用XML数据格式,还可以采用其他数据格式,这里不作限制。Specifically, the first terminal may use the identity certificate corresponding to the first user to upload the address book of the first user to the server. The format for uploading the address book may be XML data format, or other data formats, which are not limited here.

参见图3,是本发明的一种实施例提供的第二终端侧的社交关系管理的方法。需要说明的是本发明实施例中的第一用户的通讯录既可以是手机终端上的电话簿,也可以是个人电脑中电子邮箱里的地址簿,还可以是其他通讯形式的通讯录。该方法可以包括:Referring to FIG. 3 , it is a method for managing social relationships on the second terminal side provided by an embodiment of the present invention. It should be noted that the address book of the first user in the embodiment of the present invention can be the phone book on the mobile terminal, the address book in the email box in the personal computer, or the address book in other forms of communication. The method can include:

步骤S301:从服务器获取第一用户的社交关系。Step S301: Obtain the social relationship of the first user from the server.

具体的,在上述从服务器获取第一用户的社交关系之前,第二终端可接收第一终端发送的身份凭证;该身份凭证为第一终端通过注册第一用户从服务器获取的;该身份凭证与第一用户一一对应。另外,在前述接收第一终端发送的身份凭证之前,第二终端可接收第一终端的配对请求,提示配对验证码,该配对验证码用于提示用户在第一终端上输入该配对验证码来完成配对。对于第一终端的配对请求,第二终端可以通过显示设备提示配对验证码,还可以通过短信的方式提示配对验证码,这里不作限制;如果用户在第一终端上的输入与配对验证码一致,则第二终端可判定与第一终端配对成功。在配对成功之后,第二终端可接收第一终端发送的第一用户对应的身份凭证,该身份凭证用来向服务器请求获取第一用户的社交关系。Specifically, before obtaining the social relationship of the first user from the server, the second terminal may receive the identity certificate sent by the first terminal; the identity certificate is obtained by the first terminal from the server by registering the first user; the identity certificate and The first users correspond one-to-one. In addition, before receiving the identity certificate sent by the first terminal, the second terminal may receive the pairing request from the first terminal and prompt the pairing verification code, which is used to prompt the user to enter the pairing verification code on the first terminal to Complete the pairing. For the pairing request of the first terminal, the second terminal can prompt the pairing verification code through the display device, and can also prompt the pairing verification code through a text message, which is not limited here; if the user's input on the first terminal is consistent with the pairing verification code, Then the second terminal may determine that the pairing with the first terminal is successful. After the pairing is successful, the second terminal may receive the identity credential corresponding to the first user sent by the first terminal, and the identity credential is used to request the server to obtain the social relationship of the first user.

具体的,在上述接收第一终端发送的身份凭证之后,在从服务器获取第一用户的社交关系之前,第二终端可向服务器发送获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证。服务器可从该请求中提取身份凭证,并可逆向解析出该身份凭证对应的用户的注册账号,可根据该注册账号在社交关系管理中匹配出该身份凭证对应的用户为第一用户,在社交关系数据库中获取第一用户对应的社交关系。Specifically, after receiving the identity credential sent by the first terminal, before acquiring the social relationship of the first user from the server, the second terminal may send a request to the server for acquiring the social relationship of the first user, which includes the first The identity credentials corresponding to the user. The server can extract the identity credential from the request, and can reversely analyze the registered account of the user corresponding to the identity credential, and can match the user corresponding to the identity credential as the first user in the social relationship management according to the registered account. A social relationship corresponding to the first user is acquired from the relational database.

第二终端可直接根据身份凭证从服务器获取第一用户的社交关系,可直接利用第一用户的社交关系在社交网络上进行社交活动。The second terminal can directly obtain the social relationship of the first user from the server according to the identity credential, and can directly use the social relationship of the first user to conduct social activities on the social network.

步骤S303:将所述第一用户的社交关系提供给社交应用。Step S303: providing the social relationship of the first user to a social application.

具体的,可将通过步骤S301获取的第一用户的社交关系提供给社交应用。这里需要说明的是,还可以将第一用户的社交关系用作其他的功能,这里不作限制。Specifically, the social relationship of the first user acquired through step S301 may be provided to a social application. It should be noted here that the social relationship of the first user may also be used for other functions, which is not limited here.

参见图4,是发明的另一种实施例提供的社交关系管理的方法。需要说明的是本发明实施例中的第一用户的通讯录既可以是手机终端上的电话簿,也可以是个人电脑中电子邮箱里的地址簿,还可以是其他通讯形式的通讯录。该方法可以包括:Referring to FIG. 4 , it is a method for social relationship management provided by another embodiment of the invention. It should be noted that the address book of the first user in the embodiment of the present invention can be the phone book on the mobile terminal, the address book in the email box in the personal computer, or the address book in other forms of communication. The method can include:

步骤S401:第一终端在服务器上注册第一用户。Step S401: the first terminal registers the first user on the server.

具体的,第一终端既可以是手机、平板电脑等移动终端,还可以是个人计算机。第一终端接收用户输入的第一用户的注册信息,可将该注册信息发送至服务器端来完成第一用户在社交网络上的注册;第一终端可根据第一用户对应的通讯标识来注册第一用户,可将该通讯标识作为第一用户的账号在服务器上的注册第一用户。例如,第一终端根据第一用户的手机号码在服务器上注册第一用户的账号,将该手机号码作为第一用户对应的唯一的通讯标识。又例如,第一终端根据第一用户的电子邮箱在服务器上注册第一用户的账号,将该电子邮箱作为第一用户对应的唯一的通讯标识。Specifically, the first terminal may be a mobile terminal such as a mobile phone or a tablet computer, or may be a personal computer. The first terminal receives the registration information of the first user input by the user, and can send the registration information to the server to complete the registration of the first user on the social network; the first terminal can register the first user according to the communication identification corresponding to the first user. For a user, the communication identifier can be used as the first user registered on the server as the first user's account. For example, the first terminal registers the account of the first user on the server according to the mobile phone number of the first user, and uses the mobile phone number as a unique communication identifier corresponding to the first user. For another example, the first terminal registers the account of the first user on the server according to the email address of the first user, and uses the email address as the unique communication identifier corresponding to the first user.

步骤S403:服务器根据第一用户的注册信息产生第一用户对应的身份凭证;返回身份凭证至第一终端。Step S403: the server generates an identity credential corresponding to the first user according to the registration information of the first user; returns the identity credential to the first terminal.

具体的,服务器在接收第一终端注册的第一用户之后,可按预定的加密算法根据第一用户的注册信息产生身份凭证,并可将该身份凭证发送给第一终端;该身份凭证与第一用户一一对应;该身份凭证由第一终端用来上传第一用户的通讯录。其中,服务器可以提取第一用户注册信息中的账号,可对第一用户的注册账号按某种算法进行处理,使第一用户的注册账号转换成为一段不可读的代码,并可将该不可读的代码作为第一用户的身份凭证,该不可读的代码与第一用户的账号是一一对应的;服务器可通过第一用户的身份凭证逆向解析出第一用户的账号。例如,服务器从已注册用户A的注册信息中提取出用户的A的电话号码“13511112222”,并将A的电话号码按照MD5算法转换成32位的代码“78F09384FAB3ED3E9416F5CDD0A2EF59”,该32位代码就为用户A的身份凭证。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。服务器在产生第一用户的身份凭整之后,可在第一终端根据第一用户的账号登录服务器时将第一用户的身份凭证发给第一终端;第一终端接收服务器发送的第一用户的身份凭证,可根据第一用户的身份凭证将第一用户的通讯录上传到服务器。Specifically, after receiving the first user registered by the first terminal, the server can generate an identity certificate according to the registration information of the first user according to a predetermined encryption algorithm, and can send the identity certificate to the first terminal; One-to-one correspondence between users; the identity certificate is used by the first terminal to upload the address book of the first user. Among them, the server can extract the account number in the registration information of the first user, and can process the registered account number of the first user according to a certain algorithm, so that the registered account number of the first user can be converted into an unreadable code, and the unreadable code can be The code is used as the identity certificate of the first user, and the unreadable code is in one-to-one correspondence with the account number of the first user; the server can reversely analyze the account number of the first user through the identity certificate of the first user. For example, the server extracts user A's phone number "13511112222" from the registered user A's registration information, and converts A's phone number into a 32-digit code "78F09384FAB3ED3E9416F5CDD0A2EF59" according to the MD5 algorithm. A's identity credentials. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations. After the server generates the first user's identity certificate, it can send the first user's identity certificate to the first terminal when the first terminal logs in to the server according to the first user's account; the first terminal receives the first user's identity certificate sent by the server. The identity credential can upload the address book of the first user to the server according to the identity credential of the first user.

步骤S405:第一终端判断第一用户的通讯录是否更新。Step S405: the first terminal determines whether the address book of the first user is updated.

具体的,第一终端可以监测第一用户的通讯录的更新事件;该更新事件包括:添加、删除或编辑第一用户的通讯录中的联系人。第一终端可以通过给第一用户的通讯录注册监听器来监测第一用户的通讯录的更新事件,当第一用户的通讯录被修改时,该监听器可以捕捉到第一用户的通讯录的更新事件,并将更新事件报告给第一终端。第一终端可以通过更新事件的监听器来捕捉通讯录的更新,如果接收到监听器上报的更新事件,则可判断第一用户的通讯录发生更新;第一终端还可以定时主动查询第一用户的通讯录,并将当前查询时刻的通讯录和前一个查询时刻的通讯录比较来判断第一用户的通讯录是否发生更新,如果当前查询时刻的通讯录和前一个查询时刻的通讯录不同,则可判断第一用户的通讯录发生更新;否则,重新执行步骤S405,具体实现中,还可以结束当前进程,这里不作限制。Specifically, the first terminal may monitor an update event of the first user's address book; the update event includes: adding, deleting, or editing a contact in the first user's address book. The first terminal can monitor the update event of the first user's address book by registering a listener for the first user's address book, and when the first user's address book is modified, the listener can capture the first user's address book and report the update event to the first terminal. The first terminal can capture the update of the address book through the listener of the update event. If the update event reported by the listener is received, it can be judged that the address book of the first user has been updated; the first terminal can also actively query the first user periodically. address book, and compare the address book at the current query time with the address book at the previous query time to determine whether the address book of the first user is updated. If the address book at the current query time is different from the address book at the previous query time, Then it can be determined that the address book of the first user has been updated; otherwise, step S405 is re-executed. In actual implementation, the current process can also be terminated, which is not limited here.

步骤S407:第一终端上传第一用户的通讯录。Step S407: the first terminal uploads the address book of the first user.

具体的,第一终端可使用第一用户对应的身份凭证向服务器上传第一用户的通讯录。通讯录上传的格式可以采用XML数据格式,还可以采用其他数据格式,这里不作限制。Specifically, the first terminal may use the identity certificate corresponding to the first user to upload the address book of the first user to the server. The format for uploading the address book may be XML data format, or other data formats, which are not limited here.

步骤S409:服务器根据第一用户的通讯录和已注册的用户的通讯录自动添加第一用户的社交关系。Step S409: The server automatically adds the social relationship of the first user according to the first user's address book and the registered user's address book.

具体的,服务器可遍历第一用户的通讯录中的联系人,当在社交关系数据库中找到已注册的用户对应的通讯标识与该联系人对应的通讯标识一致时,将该联系人归为第一用户的通讯录中的已注册的联系人。服务器可判定第一用户的通讯录中的已注册联系人为第一用户在社交网络中的关系人,可将该关系人添加到第一用户的社交关系中。Specifically, the server may traverse the contacts in the address book of the first user, and when it finds in the social relationship database that the communication ID corresponding to the registered user is consistent with the communication ID corresponding to the contact, classify the contact as the first A registered contact in a user's address book. The server may determine that the registered contact in the address book of the first user is a related person of the first user in the social network, and may add the related person to the social relationship of the first user.

具体的,第一用户的社交关系可包括第一社交关系和第二社交关系中的至少一种。服务器可根据第一用户与第一用户的关系人的联系不同将社交关系分为第一社交关系和第二社交关系,其中,第一社交关系可为第一用户的好友圈,第二社交关系可为第一用户的关注圈。Specifically, the social relationship of the first user may include at least one of the first social relationship and the second social relationship. The server may divide the social relationship into a first social relationship and a second social relationship according to the connection between the first user and the first user's related person, wherein the first social relationship may be the first user's circle of friends, and the second social relationship may be the first social relationship. It may be the following circle of the first user.

具体的,当第一用户的社交关系包括第一社交关系时,服务器获取上述已注册的联系人的通讯录;当第一用户对应的通讯标识存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第一社交关系中;当第一用户的社交关系包括第二社交关系时,服务器获取上述已注册的联系人的通讯录;当第一用户对应的通讯标识不存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第二社交关系中。Specifically, when the social relationship of the first user includes the first social relationship, the server acquires the address book of the above-mentioned registered contacts; when the communication identifier corresponding to the first user exists in the address book of the above-mentioned registered contacts, Add the above-mentioned registered contacts to the first social relationship of the first user; when the social relationship of the first user includes the second social relationship, the server obtains the address book of the above-mentioned registered contacts; when the first user corresponds to The communication identifier does not exist in the address book of the above-mentioned registered contact, and the above-mentioned registered contact is added to the second social relationship of the first user.

例如,服务器上的用户都是用电话号码注册的账号,用户通过手机上传了更新后的第一用户的电话簿,第一用户的电话簿中新增了已注册的联系人:用户A、用户B和用户C,并且用户A、用户B和用户C的通讯录中都包括第一用户的电话号码,服务器判定用户A、用户B和用户C属于第一用户的好友圈,服务器将用户A、用户B和用户C添加到第一用户的第一社交关系中,并分别在用户A、用户B和用户C的好友圈中添加第一用户。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。For example, all users on the server are accounts registered with phone numbers, and the user uploads the updated phonebook of the first user through the mobile phone, and registered contacts are added to the phonebook of the first user: user A, user B and user C, and the address books of user A, user B, and user C all include the phone number of the first user. User B and user C are added to the first social relationship of the first user, and the first user is added to the friend circles of user A, user B and user C respectively. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

又例如,服务器上的用户都是用电话号码注册的账号,用户通过手机第一次上传第一用户的电话簿,第一用户的电话簿中有一个已注册的联系人用户A,但是,用户A的通讯录中没有第一用户的电话号码,则服务器判定用户A属于第一用户的关注对象,同时,第一用户为用户A的崇拜者,服务器将用户A添加到第一用户的关注列表中,将第一用户添加到用户A的崇拜者列表中。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。For another example, all users on the server are accounts registered with phone numbers. The user uploads the phonebook of the first user through the mobile phone for the first time. There is a registered contact user A in the phonebook of the first user. However, the user If there is no phone number of the first user in A's address book, the server determines that user A belongs to the first user's attention object, and at the same time, the first user is an admirer of user A, and the server adds user A to the first user's attention list , add the first user to user A's admirer list. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

步骤S411:服务器根据第一用户的通讯录和第一用户已有的社交关系自动删除第一用户的社交关系。Step S411: The server automatically deletes the first user's social relationship according to the first user's address book and the first user's existing social relationship.

具体的,基于所述第一用户的社交关系,服务器可遍历所述第一用户的关系人,当该关系人对应的通讯标识已不存在于所述第一用户的通讯录中,则可将该关系人从第一用户的社交关系中删除;其中,第一用户的关系人与各自唯一的通讯标识一一对应。当第一用户的通讯录发生更新后,第一终端向服务器上传第一用户的通讯录;服务器根据第一用户的更新后的通讯录,可将第一用户在社交关系数据库中过时的社交关系进行更新,可删除第一用户的社交关系中与第一用户没有社交联系的关系人。Specifically, based on the social relationship of the first user, the server may traverse the contacts of the first user, and when the communication identification corresponding to the contact no longer exists in the address book of the first user, the server may The related person is deleted from the social relationship of the first user; wherein, the related person of the first user has a one-to-one correspondence with each unique communication identifier. When the address book of the first user is updated, the first terminal uploads the address book of the first user to the server; the server can update the outdated social relationship of the first user in the social relationship database according to the updated address book of the first user Updating is performed to delete related persons who have no social connection with the first user in the social relationship of the first user.

具体的,基于上述内容,第一用户的社交关系包括第一社交关系和第二社交关系,服务器可根据第一用户的通讯录来删除第一社交关系中的关系人或者第二社交关系中的关系人。服务器可通过遍历第一用户的第一社交关系中的关系人,如果该关系人对应的通讯标识已不存在于第一用户的更新后的通讯录中,则可判定该关系人与第一用户的社交联系发生变化,可将该关系人从第一用户的第一社交关系中删除,并可从该关系人的第一社交关系中删除第一用户;服务器还可通过遍历第一用户的第二社交关系中的关系人,如果该关系人对应的通讯标识已不存在于第一用户的更新后的通讯录中,则可判定该关系人与第一用户不再有社交联系,可将该关系人从第一用户的第二社交关系中删除。Specifically, based on the above content, the social relationship of the first user includes the first social relationship and the second social relationship, and the server can delete the related person in the first social relationship or the related person in the second social relationship related person. The server can traverse the related person in the first social relationship of the first user, and if the communication identification corresponding to the related person no longer exists in the updated address book of the first user, then it can determine that the related person is related to the first user. If the social connection of the related person changes, the related person can be deleted from the first social relationship of the first user, and the first user can be deleted from the first social relationship of the related person; the server can also traverse the first user’s first social relationship 2. For a related person in a social relationship, if the communication identification corresponding to the related person no longer exists in the first user's updated address book, it can be determined that the related person no longer has a social connection with the first user, and the The related person is deleted from the second social relationship of the first user.

步骤S413:第一终端与第二终端是否配对成功。Step S413: Whether the pairing between the first terminal and the second terminal is successful.

具体的,第一终端可向第二终端发送配对请求,根据第二终端提示的配对验证码,接收与配对验证码一致的输入来完成配对。该配对验证码可以由第二终端通过显示设备提示用户,也可以由第二终端以短信的方式提示用户,还可以是其他提示用户的方式,这里不作限制。第一终端可将接收的用户的输入返回给第二终端;如果第二终端判定第一终端接收的输入与配对验证码一致,则接受第一终端的配对请求,第一终端与第二终端配对成功;否则,执行步骤S421,具体实现中,还可以结束当前进程,这里不作限制。Specifically, the first terminal may send a pairing request to the second terminal, and according to the pairing verification code prompted by the second terminal, receive an input consistent with the pairing verification code to complete the pairing. The pairing verification code can be prompted by the second terminal to the user through the display device, or by the second terminal in the form of a short message, or in other ways, which are not limited here. The first terminal can return the received user's input to the second terminal; if the second terminal determines that the input received by the first terminal is consistent with the pairing verification code, it accepts the pairing request of the first terminal, and the first terminal is paired with the second terminal Success; otherwise, execute step S421. In specific implementation, the current process can also be terminated, which is not limited here.

步骤S415:第一终端发送身份凭证至第二终端。Step S415: the first terminal sends the identity credential to the second terminal.

具体的,在上述接收第一输入在服务器上注册第一用户之后,第一终端可接收服务器发送的身份凭证,并发送该身份凭证至第二终端;该身份凭证由服务器按预定的加密算法根据第一用户的注册信息产生的身份凭证;该身份凭证与第一用户一一对应。如步骤S101中所述,服务器可按预定的加密算法根据第一用户的注册信息产生身份凭证,并可将该身份凭证发送给第一终端;第一终端可在接收服务器发送的第一用户对应的身份凭证之后,将该身份凭证发送给第二终端。Specifically, after receiving the first input and registering the first user on the server, the first terminal can receive the identity certificate sent by the server and send the identity certificate to the second terminal; the identity certificate is encrypted by the server according to a predetermined encryption algorithm. An identity credential generated from the registration information of the first user; the identity credential is in one-to-one correspondence with the first user. As described in step S101, the server can generate an identity credential according to a predetermined encryption algorithm according to the registration information of the first user, and can send the identity credential to the first terminal; After the identity credential, the identity credential is sent to the second terminal.

步骤S417:第二终端向服务器请求获取第一用户的社交关系。Step S417: the second terminal requests the server to obtain the social relationship of the first user.

具体的,第二终端可向服务器发送获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证。服务器可从该请求中提取身份凭证,并可逆向解析出该身份凭证对应的用户的注册账号,可根据该注册账号在社交关系管理中匹配出该身份凭证对应的用户为第一用户,在社交关系数据库中获取第一用户对应的社交关系。第一用户对应的社交关系可用于第二终端进行社交活动。Specifically, the second terminal may send a request to the server for obtaining the social relationship of the first user, and the request includes the identity credential corresponding to the first user. The server can extract the identity credential from the request, and can reversely analyze the registered account of the user corresponding to the identity credential, and can match the user corresponding to the identity credential as the first user in the social relationship management according to the registered account. A social relationship corresponding to the first user is acquired from the relational database. The social relationship corresponding to the first user may be used by the second terminal to perform social activities.

步骤S419:服务器发送第一用户的社交关系至第二终端。Step S419: the server sends the social relationship of the first user to the second terminal.

具体的,服务器可逆向解析步骤S417中所述的身份凭证对应的用户的注册账号,可根据该注册账号在社交关系管理中匹配出该身份凭证对应的用户为第一用户,在社交关系数据库中获取第一用户对应的社交关系,将该社交关系发送给第二终端。例如,服务器接收到社交电视发送的32位的身份凭证“78F09384FAB3ED3E9416F5CDD0A2EF59”,该32位代码是将用户对应的社交账号按照MD5算法产生的,服务器解析出该社交账号为“13511112222”,并在社交关系数据库中获取社交账号“13511112222”对应的好友列表、关注列表和粉丝列表,将其发给社交电视。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the server can reversely analyze the registered account of the user corresponding to the identity credential described in step S417, and can match the user corresponding to the identity credential as the first user in the social relationship management according to the registered account. The social relationship corresponding to the first user is obtained, and the social relationship is sent to the second terminal. For example, the server receives the 32-digit identity credential "78F09384FAB3ED3E9416F5CDD0A2EF59" sent by the social TV. The 32-digit code is generated from the social account corresponding to the user according to the MD5 algorithm. The friend list, follow list and follower list corresponding to the social account number "13511112222" are acquired from the database, and are sent to the social TV. The examples are only part of the embodiments, and may be different in actual applications, and should not be construed as limitations.

步骤S421:第一终端主动请求与第二终端建立连接。Step S421: the first terminal actively requests to establish a connection with the second terminal.

具体的,第一终端可扫描当前预定的短程通信网络,与第二终端建立短程通信连接;第二终端在该短程通信网络之中。其中,该短程通信网络可为数字生活网络联盟DLNA中支持的网络形式;第一终端可以监测同一短程通信网络中的设备,一旦发现第二终端也存在于该短程通信网络中,可主动请求来与第二终端建立短程通信连接。Specifically, the first terminal may scan the currently scheduled short-range communication network, and establish a short-range communication connection with the second terminal; the second terminal is in the short-range communication network. Wherein, the short-range communication network can be a network form supported by the Digital Living Network Alliance DLNA; the first terminal can monitor devices in the same short-range communication network, and once it finds that the second terminal also exists in the short-range communication network, it can actively request to A short-range communication connection is established with the second terminal.

参见图5,是本发明的一种实施例提供的服务器500,至少可以包括注册模块501、通讯录接收模块507、关系人获取模块509、关系人添加模块511以及社交关系发送模块517,其中:Referring to FIG. 5 , it is a server 500 provided by an embodiment of the present invention, which may at least include a registration module 501, an address book receiving module 507, a related person obtaining module 509, a related person adding module 511 and a social relationship sending module 517, wherein:

注册模块501,用于接收第一终端注册的第一用户,将第一用户存储到社交关系数据库,社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应。The registration module 501 is configured to receive the first user registered by the first terminal, and store the first user in the social relationship database, and the registered users stored in the social relationship database are in one-to-one correspondence with their unique communication identifiers.

通讯录接收模块507,用于接收第一终端上传的第一用户的通讯录,该通讯录中各个联系人与各自唯一的通讯标识一一对应。The address book receiving module 507 is configured to receive the first user's address book uploaded by the first terminal, and each contact in the address book corresponds to its unique communication identifier.

关系人获取模块509,用于根据社交关系数据库中已注册的用户来获取第一用户的通讯录中的已注册联系人,将该通讯录中的已注册的联系人作为第一用户的关系人。A relational person acquisition module 509, configured to obtain the registered contacts in the first user's address book according to the registered users in the social relationship database, and use the registered contacts in the address book as the first user's related persons .

关系人添加模块511,用于添加第一用户的关系人到第一用户的社交关系中。A relation adding module 511, configured to add the relation of the first user to the social relationship of the first user.

社交关系发送模块517,用于将第一用户的社交关系发送到第二终端。A social relationship sending module 517, configured to send the social relationship of the first user to the second terminal.

如图5所示的服务器,还可以包括:凭证模块503、鉴权模块505、关系人删除模块513以及发送预处理模块515,其中:The server shown in Figure 5 may also include: a credential module 503, an authentication module 505, a related person deletion module 513, and a sending preprocessing module 515, wherein:

凭证模块503,用于在注册模块501执行接收第一终端注册的第一用户的步骤之后,按预定的加密算法根据第一用户的注册信息产生身份凭证;该身份凭证与第一用户一一对应;该身份凭证由第一终端用来上传第一用户的通讯录;该身份凭证由第二终端用来获取第一用户的社交关系。The credential module 503 is used to generate an identity credential according to the registration information of the first user according to a predetermined encryption algorithm after the registration module 501 executes the step of receiving the first user registered by the first terminal; the identity credential is in one-to-one correspondence with the first user ; The identity credential is used by the first terminal to upload the address book of the first user; the identity credential is used by the second terminal to obtain the social relationship of the first user.

鉴权模块505,用于在通讯录接收模块507执行接收第一终端上传的第一用户的通讯录的步骤之前,接收第一终端发送的身份凭证;并对身份凭证进行鉴权,如果在社交关系数据库中找到身份凭证对应的第一用户,则判定鉴权成功,触发通讯录接收模块507执行接收第一终端上传的第一用户的通讯录的步骤。The authentication module 505 is used to receive the identity certificate sent by the first terminal before the address book receiving module 507 performs the step of receiving the first user's address book uploaded by the first terminal; and authenticate the identity certificate. If the first user corresponding to the identity credential is found in the relational database, it is determined that the authentication is successful, and the address book receiving module 507 is triggered to perform the step of receiving the first user's address book uploaded by the first terminal.

关系人删除模块513,用于在通讯录接收模块507执行接收第一终端上传的第一用户的通讯录的步骤之后,基于第一用户的社交关系,遍历第一用户的关系人,当该关系人对应的通讯标识已不存在于第一用户的通讯录中,则将该关系人从第一用户的社交关系中删除。The related party deletion module 513 is configured to traverse the related parties of the first user based on the social relationship of the first user after the contact list receiving module 507 performs the step of receiving the first user's contact list uploaded by the first terminal. If the communication identifier corresponding to the person no longer exists in the address book of the first user, the related person is deleted from the social relationship of the first user.

发送预处理模块515,用于在社交关系发送模块517执行将第一用户的社交关系发送到第二终端的步骤之前,执行:接收第二终端发送的获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证;The sending preprocessing module 515 is configured to, before the social relationship sending module 517 executes the step of sending the first user's social relationship to the second terminal, perform: receiving a request sent by the second terminal to acquire the first user's social relationship, the The request includes the identity certificate corresponding to the first user;

解析身份凭证来获取身份凭证对应的第一用户;搜索社交关系数据库来获取第一用户的社交关系;触发社交关系发送模块517执行将第一用户的社交关系发送到第二终端的步骤。Analyzing the identity certificate to obtain the first user corresponding to the identity certificate; searching the social relationship database to obtain the social relationship of the first user; triggering the social relationship sending module 517 to execute the step of sending the social relationship of the first user to the second terminal.

具体实现中,上述关系人添加模块511可以如图6所示进一步的包括:第一添加模块5111和第二添加模块5113,其中:In a specific implementation, the above-mentioned related person adding module 511 may further include, as shown in FIG. 6 : a first adding module 5111 and a second adding module 5113, wherein:

第一添加模块5111,用于当第一用户的社交关系包括第一社交关系时,获取第一用户的关系人的通讯录,第一用户的关系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识存在于第一用户的关系人的通讯录中,添加第一用户的关系人到第一用户的第一社交关系中。The first adding module 5111 is configured to obtain the contact list of the first user's contacts when the first user's social relationship includes the first social relationship, and each contact in the contact list of the first user's contacts has a unique There is a one-to-one correspondence between communication identifiers; when the communication identifier corresponding to the first user exists in the address book of the first user's contacts, add the first user's contacts to the first user's first social relationship.

第二添加模块5113,用于当第一用户的社交关系包括第二社交关系时,获取第一用户的关系人的通讯录,第一用户的关系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识不存在于第一用户的关系人的通讯录中,添加第一用户的关系人到第一用户的第二社交关系中。The second adding module 5113 is used to obtain the address book of the first user's related person when the first user's social relationship includes the second social relationship, and each contact in the first user's related person's address book has a unique One-to-one communication identifiers; when the communication identifier corresponding to the first user does not exist in the address book of the first user's contacts, add the first user's contacts to the first user's second social relationship.

具体实现中,上述关系人获取模块509可以如图7所示进一步的包括:遍历模块5091和处理模块5093,其中:In a specific implementation, the related person acquisition module 509 may further include, as shown in FIG. 7 : a traversal module 5091 and a processing module 5093, wherein:

遍历模块5091,用于遍历第一用户的通讯录中的联系人;Traverse module 5091, configured to traverse contacts in the address book of the first user;

处理模块5093,当在社交关系数据库中找到已注册的用户对应的通讯标识与第一用户的通讯录中的联系人对应的通讯标识一致时,用于将该联系人归为该通讯录中已注册的联系人,将该通讯录中的已注册的联系人作为第一用户的关系人。The processing module 5093 is used to classify the contact as an existing contact in the address book when it is found in the social relationship database that the communication identification corresponding to the registered user is consistent with the communication identification corresponding to the contact in the address book of the first user. A registered contact, the registered contact in the address book is used as a related person of the first user.

具体实现中,上述发送预处理模块515可以如图8所示进一步的包括:接收请求模块5151、解析模块5153和搜索模块5155,其中:In specific implementation, the above-mentioned sending preprocessing module 515 may further include as shown in FIG. 8: a receiving request module 5151, a parsing module 5153 and a searching module 5155, wherein:

接收请求模块5151,用于接收第二终端发送的获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证;The receiving request module 5151 is configured to receive a request sent by the second terminal to obtain the social relationship of the first user, the request including the identity certificate corresponding to the first user;

解析模块5153,用于解析身份凭证来获取该身份凭证对应的第一用户;A parsing module 5153, configured to parse the identity credential to obtain the first user corresponding to the identity credential;

搜索模块5155,用于搜索社交关系数据库来获取第一用户的社交关系。A search module 5155, configured to search the social relationship database to acquire the social relationship of the first user.

参见图9,是本发明的一种实施例提供的第一终端600,至少可以包括注册模块601、通讯录读取模块603以及通讯录上传模块605,其中:Referring to FIG. 9, it is a first terminal 600 provided by an embodiment of the present invention, which may at least include a registration module 601, an address book reading module 603, and an address book uploading module 605, wherein:

注册模块601,用于接收第一输入在服务器上注册第一用户;第一用户由服务器存储于社交关系数据库,社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;The registration module 601 is used to receive the first input and register the first user on the server; the first user is stored in the social relationship database by the server, and each registered user stored in the social relationship database has a one-to-one correspondence with each unique communication identification;

通讯录读取模块603,用于通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录;第一用户的通讯录中各个联系人与各自唯一的通讯标识一一对应;The address book reading module 603 is used to read the address book of the first user by responding to the update event of the address book of the first user; each contact person in the address book of the first user corresponds to a unique communication identifier;

通讯录上传模块605,用于上传第一用户的通讯录至服务器。The address book uploading module 605 is configured to upload the address book of the first user to the server.

如图9所示的第一终端600还可以包括:凭证模块615、监听模块609、授权模块607、配对模块611和建立连接模块613,其中:The first terminal 600 shown in FIG. 9 may further include: a credential module 615, a monitoring module 609, an authorization module 607, a pairing module 611, and a connection establishment module 613, wherein:

凭证模块615,用于在通讯录上传模块605执行接收第一输入在服务器上注册第一用户的步骤之后,接收服务器发送的身份凭证,并发送该身份凭证至第二终端;该身份凭证由服务器按预定的加密算法根据第一用户的注册信息产生的身份凭证;该身份凭证与第一用户一一对应。The credential module 615 is used to receive the identity certificate sent by the server after the address book upload module 605 performs the step of receiving the first input and registering the first user on the server, and sends the identity certificate to the second terminal; the identity certificate is sent by the server An identity credential generated according to a predetermined encryption algorithm based on the registration information of the first user; the identity credential is in one-to-one correspondence with the first user.

监听模块609,用于在通讯录读取模块603执行通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录的步骤之前,监测第一用户的通讯录的更新事件;更新事件包括:添加、删除或编辑第一用户的通讯录中的联系人。The monitoring module 609 is used to monitor the update event of the address book of the first user before the address book reading module 603 executes the step of reading the address book of the first user by responding to the update event of the address book of the first user; Events include: adding, deleting or editing a contact in the first user's address book.

授权模块607,用于在通讯录读取模块603执行通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录的步骤之前,接收第二输入来获得读取第一用户的通讯录的授权,之后,触发通讯录读取模块603执行通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录的步骤。The authorization module 607 is configured to receive a second input to obtain the first user's address book before the address book reading module 603 executes the step of reading the first user's address book by responding to an update event of the first user's address book. The authorization of the address book, after that, triggers the address book reading module 603 to execute the step of reading the first user's address book by responding to the update event of the first user's address book.

配对模块611,用于在凭证模块615执行发送身份凭证至第二终端的步骤之前,向第二终端发送配对请求,根据第二终端提示的配对验证码,接收与配对验证码一致的第三输入来完成配对,配对之后,触发凭证模块615执行发送身份凭证至第二终端的步骤。The pairing module 611 is configured to send a pairing request to the second terminal before the credential module 615 executes the step of sending the identity credential to the second terminal, and receive a third input consistent with the pairing verification code according to the pairing verification code prompted by the second terminal After the pairing, the trigger credential module 615 executes the step of sending the identity credential to the second terminal.

建立连接模块613,用于在配对模块611执行向第二终端发送配对请求的步骤之前,扫描当前预定的短程通信网络,接收第四输入与第二终端建立短程通信连接;第二终端在短程通信网络之中;之后,触发配对模块611执行向第二终端发送配对请求的步骤。Establishing a connection module 613, used to scan the currently scheduled short-range communication network before the pairing module 611 executes the step of sending a pairing request to the second terminal, and receive a fourth input to establish a short-range communication connection with the second terminal; the second terminal communicates in the short-range In the network; after that, trigger the pairing module 611 to execute the step of sending a pairing request to the second terminal.

参见图10,是本发明的一种实施例提供的第二终端700,至少可以包括社交关系获取模块701和社交关系处理模块709,其中:Referring to FIG. 10 , it is a second terminal 700 provided by an embodiment of the present invention, which may at least include a social relationship acquisition module 701 and a social relationship processing module 709, wherein:

社交关系获取模块701,用于从服务器获取第一用户的社交关系;第一用户的社交关系为服务器通过前述所有内容阐述的社交关系管理的方法而发送的社交关系。The social relationship acquiring module 701 is configured to acquire the social relationship of the first user from the server; the social relationship of the first user is the social relationship sent by the server through the method of social relationship management described in all the foregoing contents.

社交关系处理模块709,用于将第一用户的社交关系提供给社交应用。The social relationship processing module 709 is configured to provide the social relationship of the first user to the social application.

这里需要说明的是,社交关系处理模块709还可以将第一用户的社交关系用作其他的功能,这里不作限制。It should be noted here that the social relationship processing module 709 may also use the social relationship of the first user for other functions, which is not limited here.

如图10所示的第二终端700还可以包括:凭证接收模块705、配对模块703和请求模块707,其中:The second terminal 700 shown in FIG. 10 may further include: a credential receiving module 705, a pairing module 703, and a requesting module 707, wherein:

凭证接收模块705,用于在社交关系获取模块701执行从服务器获取第一用户的社交关系的步骤之前,接收第一终端发送的身份凭证;该身份凭证为第一终端通过注册第一用户从服务器获取的;该身份凭证与第一用户一一对应。The credential receiving module 705 is used to receive the identity credential sent by the first terminal before the social relationship acquiring module 701 executes the step of acquiring the social relationship of the first user from the server; Obtained; the identity credential is in one-to-one correspondence with the first user.

配对模块703,用于在凭证接收模块705执行接收第一终端发送的身份凭证的步骤之前,接收第一终端的配对请求,提示配对验证码,该配对验证码用于提示用户在第一终端上输入配对验证码来完成配对;配对之后,触发凭证接收模块705执行接收第一终端发送的身份凭证的步骤。The pairing module 703 is configured to receive a pairing request from the first terminal before the credential receiving module 705 executes the step of receiving the identity credential sent by the first terminal, and prompt the pairing verification code, which is used to prompt the user to check the identity certificate on the first terminal. Input the pairing verification code to complete the pairing; after the pairing, the credential receiving module 705 is triggered to perform the step of receiving the identity credential sent by the first terminal.

请求模块707,用于在凭证接收模块705执行接收第一终端发送的身份凭证的步骤之后,在社交关系获取模块701执行从服务器获取第一用户的社交关系的步骤之前,向服务器发送获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证。The requesting module 707 is configured to, after the credential receiving module 705 executes the step of receiving the identity credential sent by the first terminal, and before the social relationship acquiring module 701 executes the step of acquiring the social relationship of the first user from the server, send a request to the server to obtain the first user's social relationship. A request for a user's social relationship, where the request includes an identity credential corresponding to the first user.

参见图11,图11是本发明的另一种实施例提供的服务器的结构示意图。其中,如图11所示,服务器110可以包括:至少一个处理器1101,例如CPU,至少两个网络接口:第一网络接口1104和第二网络接口1103,存储器1105以及至少一个通信总线1102。其中,通信总线1102用于实现这些组件之间的连接通信。其中,存储器1105可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1105可选的还可以是至少一个位于远离前述处理器1101的存储装置。如图11所示,作为一种计算机存储介质的存储器1105中可以包括操作系统、网络通信模块以及社交关系管理程序。Referring to FIG. 11 , FIG. 11 is a schematic structural diagram of a server provided by another embodiment of the present invention. Wherein, as shown in FIG. 11 , the server 110 may include: at least one processor 1101, such as a CPU, at least two network interfaces: a first network interface 1104 and a second network interface 1103, a memory 1105, and at least one communication bus 1102. Wherein, the communication bus 1102 is used to realize connection and communication between these components. Wherein, the memory 1105 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1105 may also be at least one storage device located away from the aforementioned processor 1101 . As shown in FIG. 11 , the memory 1105 as a computer storage medium may include an operating system, a network communication module, and a social relationship management program.

在图11所示的服务器110中,第一网络接口1104主要用于连接第一终端,与第一终端进行数据通信;第二网络接口1103主要用于连接第二终端,与第二终端进行数据通信;而处理器1101可以用于调用存储器1105中存储的社交关系管理程序,并执行以下操作:In the server 110 shown in FIG. 11 , the first network interface 1104 is mainly used to connect to the first terminal and perform data communication with the first terminal; the second network interface 1103 is mainly used to connect to the second terminal and perform data communication with the second terminal. communication; and the processor 1101 can be used to call the social relationship management program stored in the memory 1105, and perform the following operations:

接收第一终端注册的第一用户,将所述第一用户存储到社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;receiving the first user registered by the first terminal, storing the first user in a social relationship database, and each registered user stored in the social relationship database corresponds to a unique communication identifier;

接收所述第一终端上传的所述第一用户的通讯录,所述通讯录中各个联系人与各自唯一的通讯标识一一对应;receiving the address book of the first user uploaded by the first terminal, where each contact in the address book has a one-to-one correspondence with each unique communication identifier;

根据社交关系数据库中已注册的用户来获取所述通讯录中的已注册联系人,将所述通讯录中的已注册的联系人作为所述第一用户的关系人,添加所述关系人到所述第一用户的社交关系中;Obtain the registered contacts in the address book according to the registered users in the social relationship database, use the registered contacts in the address book as the related persons of the first user, and add the related persons to the Among the social relationships of the first user;

将所述第一用户的社交关系发送到第二终端。Sending the social relationship of the first user to the second terminal.

进一步地,处理器1101执行的添加上述关系人到第一用户的社交关系中的步骤可以上包括:Further, the step performed by the processor 1101 to add the above-mentioned related person to the social relationship of the first user may include:

当第一用户的社交关系包括第一社交关系时,获取上述已注册的联系人的通讯录,上述已注册的联系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第一社交关系中;或者When the social relationship of the first user includes the first social relationship, the address book of the above-mentioned registered contacts is obtained, and each contact in the address book of the above-mentioned registered contacts is in one-to-one correspondence with their respective unique communication identifiers; A communication identifier corresponding to a user exists in the address book of the above-mentioned registered contact, and the above-mentioned registered contact is added to the first social relationship of the first user; or

当第一用户的社交关系包括第二社交关系时,获取上述已注册的联系人的通讯录,上述已注册的联系人的通讯录中各个联系人与各自唯一的通讯标识一一对应;当第一用户对应的通讯标识不存在于上述已注册的联系人的通讯录中,添加上述已注册的联系人到第一用户的第二社交关系中。When the social relationship of the first user includes the second social relationship, the address book of the above-mentioned registered contacts is obtained, and each contact in the address book of the above-mentioned registered contacts is in one-to-one correspondence with their respective unique communication identifiers; A communication identifier corresponding to a user does not exist in the address book of the above-mentioned registered contact, and the above-mentioned registered contact is added to the second social relationship of the first user.

再进一步地,处理器1101在执行接收第一终端上传的第一用户的通讯录的步骤之后,还可执行:基于第一用户的社交关系,遍历第一用户的关系人,当该关系人对应的通讯标识已不存在于第一用户的通讯录中,则将该关系人从第一用户的社交关系中删除。Still further, after the processor 1101 performs the step of receiving the address book of the first user uploaded by the first terminal, it may also execute: based on the social relationship of the first user, traverse the related persons of the first user, and when the related person corresponds to If the communication identifier of the user no longer exists in the address book of the first user, the related person is deleted from the social relationship of the first user.

再进一步地,处理器1101执行的根据社交关系数据库中已注册的用户来获取第一用户的通讯录中的已注册联系人的步骤具体可包括:Still further, the step of obtaining the registered contacts in the address book of the first user according to the registered users in the social relationship database performed by the processor 1101 may specifically include:

遍历第一用户的通讯录中的联系人,当在社交关系数据库中找到已注册的用户对应的通讯标识与该联系人对应的通讯标识一致时,将该联系人归为第一用户的通讯录中已注册的联系人。Traverse the contacts in the first user's address book, and when the communication ID corresponding to the registered user is found to be consistent with the communication ID corresponding to the contact in the social relationship database, classify the contact as the first user's address book registered contacts in .

再进一步地,处理器1101在执行接收第一终端注册的第一用户的步骤之后,还可以执行:按预定的加密算法根据第一用户的注册信息产生身份凭证,并将该身份凭证发送给第一终端;该身份凭证与第一用户一一对应;该身份凭证由第一终端用来上传第一用户的通讯录。Still further, after the processor 1101 executes the step of receiving the first user registered by the first terminal, it may further execute: generate an identity credential according to the registration information of the first user according to a predetermined encryption algorithm, and send the identity credential to the second terminal A terminal; the identity credential is in one-to-one correspondence with the first user; the identity credential is used by the first terminal to upload the address book of the first user.

再进一步地,处理器1101在执行接收第一终端上传的第一用户的通讯录的步骤之前,还可执行的步骤包括:接收第一终端发送的身份凭证;并对该身份凭证进行鉴权,如果在社交关系数据库中找到该身份凭证对应的第一用户,则判定鉴权成功,触发执行所述接收第一终端上传的第一用户的通讯录的步骤。Still further, before the processor 1101 executes the step of receiving the address book of the first user uploaded by the first terminal, the further steps may include: receiving the identity credential sent by the first terminal; and authenticating the identity credential, If the first user corresponding to the identity credential is found in the social relationship database, it is determined that the authentication is successful, and the step of receiving the first user's address book uploaded by the first terminal is triggered.

再进一步地,处理器1101在执行将第一用户的社交关系发送到第二终端之前,还可执行的步骤包括:Still further, before the processor 1101 executes sending the social relationship of the first user to the second terminal, further steps may be performed including:

接收第二终端发送的获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证;receiving a request from the second terminal to acquire the social relationship of the first user, the request including the identity certificate corresponding to the first user;

解析身份凭证来获取身份凭证对应的第一用户;Parsing the identity certificate to obtain the first user corresponding to the identity certificate;

搜索社交关系数据库来获取第一用户的社交关系。A social relationship database is searched to obtain the first user's social relationships.

参见图12,图12是本发明的另一种实施例提供的第一终端的结构示意图。其中,如图12所示,第一终端120可以包括:至少一个处理器1201,例如CPU,至少两个网络接口:第一网络接口1204和第二网络接口1207,用户接口1203,存储器1205,至少一个通信总线1202以及显示屏1206。其中,通信总线1202用于实现这些组件之间的连接通信。其中,用户接口1203可以包括触摸屏(Touch Screen),可选用户接口1203还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1205可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1205可选的还可以是至少一个位于远离前述处理器1201的存储装置。如图12所示,作为一种计算机存储介质的存储器1205中可以包括操作系统、网络通信模块、用户接口模块以及社交关系管理程序。Referring to FIG. 12 , FIG. 12 is a schematic structural diagram of a first terminal provided by another embodiment of the present invention. Wherein, as shown in FIG. 12, the first terminal 120 may include: at least one processor 1201, such as a CPU, at least two network interfaces: a first network interface 1204 and a second network interface 1207, a user interface 1203, a memory 1205, at least A communication bus 1202 and display screen 1206. Wherein, the communication bus 1202 is used to realize connection and communication between these components. Wherein, the user interface 1203 may include a touch screen (Touch Screen), and the optional user interface 1203 may also include a standard wired interface and a wireless interface. Optionally, the network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1205 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1205 may also be at least one storage device located away from the aforementioned processor 1201 . As shown in FIG. 12 , the memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a social relationship management program.

在图12所示的第一终端120中,第一网络接口1204主要用于连接服务器,与服务器进行数据通信;第二网络接口1203主要用于连接第二终端,与第二终端进行数据通信;而处理器1201可以用于调用存储器1205中存储的社交关系管理程序,并执行以下操作:In the first terminal 120 shown in FIG. 12 , the first network interface 1204 is mainly used to connect to the server and perform data communication with the server; the second network interface 1203 is mainly used to connect to the second terminal and perform data communication with the second terminal; The processor 1201 can be used to call the social relationship management program stored in the memory 1205, and perform the following operations:

接收第一输入在服务器上注册第一用户;所述第一用户由所述服务器存储于社交关系数据库,所述社交关系数据库存储的已注册的各个用户与各自唯一的通讯标识一一对应;Receive the first input and register the first user on the server; the first user is stored in a social relationship database by the server, and each registered user stored in the social relationship database has a one-to-one correspondence with each unique communication identification;

通过响应所述第一用户的通讯录的更新事件来读取所述第一用户的通讯录;所述通讯录中各个联系人与各自唯一的通讯标识一一对应;Reading the address book of the first user by responding to an update event of the address book of the first user; each contact in the address book has a one-to-one correspondence with each unique communication identifier;

上传所述第一用户的通讯录至所述服务器。uploading the address book of the first user to the server.

进一步地,处理器1201在执行接收第一输入在服务器上注册第一用户的步骤之后,还可执行:接收服务器发送的身份凭证,并发送该身份凭证至第二终端;该身份凭证由服务器按预定的加密算法根据第一用户的注册信息产生的身份凭证;该身份凭证与第一用户一一对应。Further, after the processor 1201 executes the step of receiving the first input and registering the first user on the server, it may further execute: receiving the identity certificate sent by the server, and sending the identity certificate to the second terminal; An identity credential generated by a predetermined encryption algorithm according to the registration information of the first user; the identity credential is in one-to-one correspondence with the first user.

再进一步地,处理器1201在执行通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录的步骤之前,还可以监测第一用户的通讯录的更新事件;更新事件包括:添加、删除或编辑第一用户的通讯录中的联系人。Still further, before the processor 1201 executes the step of reading the address book of the first user by responding to the update event of the address book of the first user, it may also monitor the update event of the address book of the first user; the update event includes: Add, delete or edit contacts in the first user's address book.

再进一步地,处理器1201在执行通过响应第一用户的通讯录的更新事件来读取第一用户的通讯录的步骤之前,还可执行:接收第二输入来获得读取第一用户的通讯录的授权,根据该授权来读取第一用户的通讯录。Still further, before the processor 1201 executes the step of reading the first user's address book by responding to an update event of the first user's address book, it may also execute: receiving a second input to obtain the first user's communication directory authorization, and read the first user's address book according to the authorization.

再进一步地,处理器1201在执行发送身份凭证至第二终端之前,还可执行:向第二终端发送配对请求,根据第二终端提示的配对验证码,接收与配对验证码一致的第三输入来完成配对;配对之后,触发执行所述发送所述身份凭证至所述第二终端的步骤。Furthermore, before the processor 1201 executes sending the identity credential to the second terminal, it may further execute: sending a pairing request to the second terminal, and receiving a third input consistent with the pairing verification code according to the pairing verification code prompted by the second terminal to complete the pairing; after the pairing, trigger the execution of the step of sending the identity credential to the second terminal.

再进一步地,处理器1201在执行向第二终端发送配对请求的步骤之前,还可执行:扫描当前预定的短程通信网络,接收第四输入与第二终端建立短程通信连接;之后,触发执行所述向所述第二终端发送配对请求的步骤。Still further, before the processor 1201 executes the step of sending the pairing request to the second terminal, it may further execute: scan the currently scheduled short-range communication network, and receive a fourth input to establish a short-range communication connection with the second terminal; Describe the step of sending a pairing request to the second terminal.

参见图13,图13是本发明的另一种实施例提供的第二终端的结构示意图。其中,如图13所示,第二终端130可以包括:至少一个处理器1301,例如CPU,至少两个网络接口:第一网络接口1304和第二网络接口1307,用户接口1303,存储器1305,至少一个通信总线1302以及显示屏1306。其中,通信总线1302用于实现这些组件之间的连接通信。其中,用户接口1303可以包括触摸屏(Touch Screen),可选用户接口1303还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1305可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1305可选的还可以是至少一个位于远离前述处理器1301的存储装置。如图13所示,作为一种计算机存储介质的存储器1305中可以包括操作系统、网络通信模块、用户接口模块以及社交关系管理程序。Referring to FIG. 13 , FIG. 13 is a schematic structural diagram of a second terminal provided by another embodiment of the present invention. Wherein, as shown in FIG. 13, the second terminal 130 may include: at least one processor 1301, such as a CPU, at least two network interfaces: a first network interface 1304 and a second network interface 1307, a user interface 1303, a memory 1305, at least A communication bus 1302 and display screen 1306. Wherein, the communication bus 1302 is used to realize connection and communication between these components. Wherein, the user interface 1303 may include a touch screen (Touch Screen), and the optional user interface 1303 may also include a standard wired interface and a wireless interface. Optionally, the network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1305 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1305 may also be at least one storage device located away from the aforementioned processor 1301 . As shown in FIG. 13 , the memory 1305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a social relationship management program.

在图13所示的第一终端130中,第一网络接口1304主要用于连接服务器,与服务器进行数据通信;第二网络接口1303主要用于连接第一终端,与第一终端进行数据通信;而处理器1301可以用于调用存储器1305中存储的社交关系管理程序,并执行以下操作:In the first terminal 130 shown in FIG. 13 , the first network interface 1304 is mainly used to connect to the server and perform data communication with the server; the second network interface 1303 is mainly used to connect to the first terminal and perform data communication with the first terminal; The processor 1301 can be used to call the social relationship management program stored in the memory 1305, and perform the following operations:

从服务器获取第一用户的社交关系。The social relationship of the first user is acquired from the server.

进一步地,处理器1301在执行从服务器获取第一用户的社交关系的步骤之前,接收第一终端发送的身份凭证;该身份凭证为第一终端通过注册第一用户从服务器获取的;该身份凭证与第一用户一一对应。Further, before the processor 1301 executes the step of acquiring the social relationship of the first user from the server, it receives the identity credential sent by the first terminal; the identity credential is obtained by the first terminal from the server by registering the first user; the identity credential One-to-one correspondence with the first user.

再进一步地,处理器1301在执行接收第一终端发送的身份凭证的步骤之后,在执行从服务器获取第一用户的社交关系的步骤之前,还可执行:向服务器发送获取第一用户的社交关系的请求,该请求中包括第一用户对应的身份凭证。Still further, after the processor 1301 performs the step of receiving the identity credential sent by the first terminal, and before performing the step of obtaining the social relationship of the first user from the server, the processor 1301 may also perform: sending the server to obtain the social relationship of the first user request, the request includes the identity credential corresponding to the first user.

再进一步地,处理器1301在执行接收第一终端发送的身份凭证的步骤之前,还可执行:接收第一终端的配对请求,提示配对验证码,配对验证码用于提示用户在第一终端上输入配对验证码来完成配对;配对之后,触发执行接收第一终端发送的身份凭证的步骤。Still further, before the processor 1301 performs the step of receiving the identity certificate sent by the first terminal, it may also perform: receiving a pairing request from the first terminal, prompting a pairing verification code, the pairing verification code is used to prompt the user to log in on the first terminal Enter the pairing verification code to complete the pairing; after the pairing, trigger the execution of the step of receiving the identity certificate sent by the first terminal.

上述详细阐述了本发明实施例提供的社交关系管理的设备,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供实施上述方案的系统。参见图14,是本发明的另一种实施例提供的社交关系管理系统,包括:服务器1401、第一终端1403和第二终端1405,其中:The device for social relationship management provided by the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above solution of the embodiment of the present invention, a system for implementing the above solution is also provided below accordingly. Referring to Fig. 14, it is a social relationship management system provided by another embodiment of the present invention, including: a server 1401, a first terminal 1403 and a second terminal 1405, wherein:

服务器1401可以为上述图5至图8任意一个实施例中的服务器500,可选的该服务器1401还可以为上述图11所示实施例中的服务器110;服务器1401中的各个功能模块可以参考上述实施例中服务器500或服务器110的描述,这里不再赘述。The server 1401 can be the server 500 in any one of the above-mentioned FIG. 5 to FIG. 8 embodiments. Optionally, the server 1401 can also be the server 110 in the above-mentioned embodiment shown in FIG. The description of the server 500 or the server 110 in the embodiment will not be repeated here.

第一终端1403可以为上述图9所示的实施例中的第一终端600,可选的该第一终端1403还可以为上述图12所示实施例中的第一终端120;第一终端1403中的各个功能模块可以参考上述实施例中第一终端600或第一终端120的描述,这里不再赘述。The first terminal 1403 may be the first terminal 600 in the above-mentioned embodiment shown in FIG. 9, and optionally the first terminal 1403 may also be the first terminal 120 in the above-mentioned embodiment shown in FIG. For each functional module in the above-mentioned embodiment, reference may be made to the description of the first terminal 600 or the first terminal 120, and details are not described here again.

第二终端1405可以为上述图10所示的实施例中的第二终端700,可选的该第二终端1405还可以为上述图13所示实施例中的第二终端130;第二终端1405中的各个功能模块可以参考上述实施例中第二终端700或第二终端130的描述,这里不再赘述。The second terminal 1405 may be the second terminal 700 in the above-mentioned embodiment shown in FIG. 10, and optionally the second terminal 1405 may also be the second terminal 130 in the above-mentioned embodiment shown in FIG. For each functional module in the above-mentioned embodiment, reference may be made to the description of the second terminal 700 or the second terminal 130 in the foregoing embodiment, and details are not repeated here.

综上所述,通过实施本发明实施例,服务器接收第一终端注册的第一用户,接收第一终端上传的第一用户的通讯录,根据第一用户的通讯录和已注册的用户自动生成第一用户的社交关系,在第一用户的通讯录更新后,服务器根据第一终端上传的更新后的第一用户的通讯录来自动更新第一用户的社交关系,提供第一用户的社交关系给第二终端,可实现自动生成、更新社交关系,可减少社交电视侧的用户操作,可实现社交关系跨平台管理。To sum up, by implementing the embodiment of the present invention, the server receives the first user registered by the first terminal, receives the address book of the first user uploaded by the first terminal, and automatically generates an address book based on the address book of the first user and registered users The social relationship of the first user, after the address book of the first user is updated, the server automatically updates the social relationship of the first user according to the updated address book of the first user uploaded by the first terminal, and provides the social relationship of the first user For the second terminal, social relationships can be automatically generated and updated, user operations on the social TV side can be reduced, and cross-platform management of social relationships can be realized.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.

Claims (31)

  1. A kind of 1. method of social networks management, it is characterised in that including:
    The first user of first terminal registration is received, by first user storage to social networks database, the social pass It is that registered each user of database purchase and each unique communications identification correspond, the first terminal is hand One kind in machine, tablet computer and personal computer;
    Receive the address list for first user that the first terminal uploads, in the address list each contact person with each only One communications identification corresponds;
    Registered contact person in the address list is obtained according to registered user in social networks database, will be described logical Party of the registered contact person as first user in news record, the social networks of the first user include the first social activity Relation, obtains the address list of the registered contact person, in the address list of the registered contact person each contact person with Each unique communications identification corresponds;When the corresponding communications identification of first user is present in the registered contact In the address list of people, the registered contact person is added into the first social networks of first user;Or
    The social networks of first user include the second social networks;Obtain the address list of the registered contact person, institute Each contact person in the address list of registered contact person is stated to correspond with each unique communications identification;When the described first use The corresponding communications identification in family is not present in the address list of the registered contact person, is added the registered contact person and is arrived In the second social networks of first user;
    The social networks of first user are sent to second terminal, the second terminal is social television.
  2. 2. the method as described in claim 1, it is characterised in that the party of first user marks with each unique communication Know and correspond;
    After the address list for receiving first user that the first terminal uploads, further include:
    Based on the social networks of first user, the party of first user is traveled through, is led to when the party is corresponding News mark has been not present in the address list of first user, then the social networks by the party from first user Middle deletion.
  3. 3. the method as described in claim 1, it is characterised in that in the database according to social networks registered user come The registered contact person obtained in the address list includes:
    The contact person in the address list of first user is traveled through, when finding registered use in the social networks database When the corresponding communications identification in family communications identification corresponding with the contact person is consistent, the contact person is classified as in the address list Registered contact person.
  4. 4. the method as described in claim 1, it is characterised in that after the first user of the reception first terminal registration, Identity documents are produced according to the log-on message of first user by predetermined Encryption Algorithm, and the identity documents are sent to The first terminal;The identity documents are corresponded with first user;The identity documents are used by the first terminal To upload the address list of first user.
  5. 5. method as claimed in claim 4, it is characterised in that in first use for receiving the first terminal and uploading Before the address list at family, including:
    Receive the identity documents that first terminal is sent;And the identity documents are authenticated, if in the social networks number According to corresponding first user of the identity documents is found in storehouse, then judge to authenticate successfully, perform the reception first terminal The step of address list of first user uploaded.
  6. 6. method as claimed in claim 4, it is characterised in that be sent in the social networks by first user Before two terminals, including:
    The request of the social networks for acquisition first user that the second terminal is sent is received, the request includes described The corresponding identity documents of first user;
    The identity documents are parsed to obtain corresponding first user of the identity documents;
    The social networks database is searched for obtain the social networks of first user;Perform described by first user Social networks the step of being sent to second terminal.
  7. A kind of 7. method of social networks management, it is characterised in that including:
    Receive the first input and register the first user on the server;First user is by the server storage in social networks Database, registered each user of the social networks database purchase correspond with each unique communications identification;
    Monitor the update event of the address list of first user;The update event includes:Add, delete or edit described Contact person in the address list of one user;
    When the update event occurs, described first is read by responding the update event of address list of first user The address list of user;Each contact person corresponds with each unique communications identification in the address list;
    The address list of first user is uploaded to the server.
  8. 8. the method for claim 7, it is characterised in that receive the first input use of registration first on the server described After family, the identity documents that the server is sent are received, and send the identity documents to second terminal;The identity documents The identity documents produced by the server by predetermined Encryption Algorithm according to the log-on message of first user;The identity Voucher is corresponded with first user, and the second terminal is social television.
  9. 9. the method for claim 7, it is characterised in that in the address list by responding first user more New events are come before reading the address list of first user, the communication of first user is read in the input of reception second to obtain The mandate of record, the address list of first user is read according to the mandate.
  10. 10. method as claimed in claim 8, it is characterised in that send the identity documents to the second terminal described Before, pairing request is sent to the second terminal, the pair verification code prompted according to the second terminal, reception is matched somebody with somebody with described Consistent to identifying code the 3rd input is completed to match, and after the pairing, performs and described sends the identity documents to described The step of second terminal.
  11. 11. method as claimed in claim 10, it is characterised in that it is described to the second terminal send pairing request it Before, the current predetermined short range communication network of scanning, the input of reception the 4th is established junction service with the second terminal and is connected;It is described Second terminal is among the short range communication network;Afterwards, the step of performing the transmission pairing request to the second terminal.
  12. A kind of 12. method of social networks management, it is characterised in that including:
    The social networks of the first user are obtained from server;The social networks of first user pass through claim for server The method of 1-11 any one of them social networks management and the social networks sent;
    The social networks of first user are supplied to social networking application.
  13. 13. method as claimed in claim 12, it is characterised in that in the social networks that the first user is obtained from server Before, the identity documents that first terminal is sent are received;The identity documents are used for the first terminal by registering described first Family is obtained from server;The identity documents are corresponded with first user.
  14. 14. method as claimed in claim 13, it is characterised in that it is described reception first terminal send identity documents it Afterwards, before the social networks for obtaining the first user from server, the society for obtaining first user is sent to the server The request of friendship relation, the request include the corresponding identity documents of first user.
  15. 15. method as claimed in claim 13, it is characterised in that it is described reception first terminal send identity documents it Before, the pairing request of the first terminal is received, prompts pair verification code, the pair verification code is used to prompt user described The pair verification code is inputted on first terminal to complete the pairing;After the pairing, the reception first terminal is performed The step of identity documents of transmission.
  16. A kind of 16. server of social networks management, it is characterised in that including:
    Registration module, for receiving the first user of first terminal registration, by first user storage to social networks data Storehouse, registered each user of the social networks database purchase corresponds with each unique communications identification, described First terminal is one kind in mobile phone, tablet computer and personal computer;
    Address list receiving module, the address list of first user uploaded for receiving the first terminal, the address list In each contact person corresponded with each unique communications identification;
    Party's acquisition module, for being obtained according to registered user in social networks database in the address list Registration contact person, the party using the registered contact person in the address list as first user, the first user's Social networks include the first social networks;
    Party's add module, for obtaining the address list of the registered contact person, the registered contact person's is logical Each contact person corresponds with each unique communications identification in news record;When the corresponding communications identification of first user exists In the address list of the registered contact person, first social activity of the registered contact person to first user is added In relation;Alternatively, the social networks of first user include the second social networks;Obtain the logical of the registered contact person News are recorded, and each contact person corresponds with each unique communications identification in the address list of the registered contact person;Work as institute State the corresponding communications identification of the first user to be not present in the address list of the registered contact person, addition is described registered Contact person is into the second social networks of first user;
    Social networks sending module, for the social networks of first user to be sent to second terminal, the second terminal For social television.
  17. 17. server as claimed in claim 16, it is characterised in that party's removing module is further included, for described logical After news record receiving module performs the step of address list of first user for receiving the first terminal upload, it is based on The social networks of first user, travel through the party of first user, when the corresponding communications identification of the party It is not present in the address list of first user, then deletes the party from the social networks of first user.
  18. 18. server as claimed in claim 16, it is characterised in that party's acquisition module includes:
    Spider module, the contact person in address list for traveling through first user;
    Processing module, for when find in the social networks database the corresponding communications identification of registered user with it is described When the corresponding communications identification of contact person is consistent, the contact person is classified as registered contact person in the address list, by described in Party of the registered contact person as first user in address list.
  19. 19. server as claimed in claim 16, it is characterised in that credentials module is further included, in the registration module After the step of performing the first user of the reception first terminal registration, by predetermined Encryption Algorithm according to first user Log-on message produce identity documents, send the identity documents to first terminal;The identity documents and first user Correspond;The identity documents are used for uploading the address list of first user by the first terminal;The identity documents It is used for obtaining the social networks of first user by the second terminal.
  20. 20. server as claimed in claim 19, it is characterised in that further include:
    Authentication module, for performing first use for receiving the first terminal and uploading in the address list receiving module Before the step of address list at family, the identity documents that first terminal is sent are received;And the identity documents are authenticated, if Corresponding first user of the identity documents is found in the social networks database, then judges to authenticate successfully, triggering The address list receiving module performs the step of address list of first user for receiving the first terminal upload.
  21. 21. server as claimed in claim 19, it is characterised in that further include:
    Send pretreatment module, for the social networks by first user are sent to second terminal the step of it Before, execution includes:
    The request of the social networks for acquisition first user that the second terminal is sent is received, the request includes described The corresponding identity documents of first user;
    The identity documents are parsed to obtain corresponding first user of the identity documents;
    The social networks database is searched for obtain the social networks of first user;
    Afterwards, trigger the sending module and perform the step that the social networks by first user are sent to second terminal Suddenly.
  22. 22. server as claimed in claim 21, it is characterised in that the transmission pretreatment module includes:
    Request module is received, the request of the social networks of acquisition first user sent for receiving the second terminal, The request includes the corresponding identity documents of first user;
    Parsing module, corresponding first user of the identity documents is obtained for parsing the identity documents;
    Search module, the social networks of first user are obtained for searching for the social networks database.
  23. A kind of 23. first terminal of social networks management, it is characterised in that including:
    Registration module, the first user is registered for receiving the first input on the server;First user is by the server It is stored in social networks database, registered each user of the social networks database purchase and each unique communication Mark corresponds;
    Monitor module, the update event of the address list for monitoring first user;The update event includes:Add, delete Remove or edit the contact person in the address list of first user;
    Address list read module, for when the update event occurs, by responding the address list of first user more New events read the address list of first user;Each contact person and each unique communications identification one in the address list One corresponds to;
    Address list uploading module, for uploading the address list of first user to the server.
  24. 24. first terminal as claimed in claim 23, it is characterised in that credentials module is further included, in the registration mould After block performs the step of the first user is registered in the input of reception first on the server, the body that the server is sent is received Part voucher, and the identity documents are sent to second terminal;The identity documents press predetermined Encryption Algorithm by the server The identity documents produced according to the log-on message of first user;The identity documents are corresponded with first user, The second terminal is social television.
  25. 25. first terminal as claimed in claim 23, it is characterised in that authorization module is further included, in the address list Read module execution is described to read the logical of first user by responding the update event of the address list of first user Before the step of news record, the mandate of the address list of first user is read in the input of reception second to obtain, afterwards, described in triggering Address list read module is used described in performing by the update event for the address list for responding first user to read described first The step of address list at family.
  26. 26. first terminal as claimed in claim 24, it is characterised in that matching module is further included, in the voucher mould Before block performs the transmission identity documents to the step of second terminal, sending pairing to the second terminal please Ask, the pair verification code prompted according to the second terminal, receive threeth input consistent with the pair verification code to complete Pairing, after the pairing, triggers the credentials module and performs the transmission identity documents to the step of the second terminal Suddenly.
  27. 27. first terminal as claimed in claim 26, it is characterised in that further include and establish link block, for matching somebody with somebody described Before the step of transmission pairing request to the second terminal is performed to module, the current predetermined junction service net of scanning Network, the input of reception the 4th are established junction service with the second terminal and are connected;The second terminal is in the short range communication network Among;Afterwards, the step of matching module performs the transmission pairing request to the second terminal is triggered.
  28. A kind of 28. second terminal of social networks management, it is characterised in that including:
    Social networks acquisition module, for obtaining the social networks of the first user from server;The social pass of first user It is the social networks that send for server by the method for claim 1-11 any one of them social networks management;
    Social networks processing module, for the social networks of first user to be supplied to social networking application.
  29. 29. second terminal as claimed in claim 28, it is characterised in that voucher receiving module is further included, in the society Hand over Relation acquisition module to perform described before the step of social networks of server the first user of acquisition, receive first terminal hair The identity documents sent;What the identity documents were obtained for the first terminal by registering first user from server;Institute Identity documents are stated to correspond with first user.
  30. 30. second terminal as claimed in claim 29, it is characterised in that matching module is further included, for being connect in the voucher Before receiving the step of module performs the identity documents that the reception first terminal is sent, the pairing for receiving the first terminal please Ask, prompt pair verification code, the pair verification code is used to prompt user to input the pair verification on the first terminal Code completes the pairing;After the pairing, trigger the voucher receiving module and perform what the reception first terminal was sent The step of identity documents.
  31. 31. second terminal as claimed in claim 29, it is characterised in that request module is further included, for being connect in the voucher After receiving the step of module performs the identity documents that the reception first terminal is sent, performed in the social networks acquisition module It is described the first user is obtained from server social networks the step of before, sent to the server and obtain first user Social networks request, the request includes the corresponding identity documents of first user.
CN201410325432.XA 2014-07-09 2014-07-09 A kind of method, equipment and the system of social networks management Expired - Fee Related CN104123350B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410325432.XA CN104123350B (en) 2014-07-09 2014-07-09 A kind of method, equipment and the system of social networks management
PCT/CN2015/073673 WO2016004768A1 (en) 2014-07-09 2015-03-05 Social relation management method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410325432.XA CN104123350B (en) 2014-07-09 2014-07-09 A kind of method, equipment and the system of social networks management

Publications (2)

Publication Number Publication Date
CN104123350A CN104123350A (en) 2014-10-29
CN104123350B true CN104123350B (en) 2018-05-15

Family

ID=51768761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410325432.XA Expired - Fee Related CN104123350B (en) 2014-07-09 2014-07-09 A kind of method, equipment and the system of social networks management

Country Status (2)

Country Link
CN (1) CN104123350B (en)
WO (1) WO2016004768A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123350B (en) * 2014-07-09 2018-05-15 深圳创维数字技术有限公司 A kind of method, equipment and the system of social networks management
CN104519391A (en) * 2014-12-09 2015-04-15 常璨 Social system based on Internet television programs and working method of social system
CN105391816B (en) * 2015-11-25 2019-03-01 小米科技有限责任公司 The recommended method and device of special list
CN106294813A (en) * 2016-08-15 2017-01-04 歌尔股份有限公司 A kind of method and apparatus of smart machine person recognition
CN107948291B (en) * 2017-11-28 2021-06-01 西安万像电子科技有限公司 Terminal control method, device and system
CN111460049A (en) * 2020-04-01 2020-07-28 北京字节跳动网络技术有限公司 Content sharing method and device, electronic equipment and computer readable storage medium
CN111523862B (en) * 2020-04-27 2024-02-23 广东电网有限责任公司培训与评价中心 Method and related equipment for acquiring talent data
CN115002269B (en) * 2021-03-01 2023-03-24 华为技术有限公司 Method, device, system and computer-readable storage medium for reading address book

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090404A (en) * 2007-05-31 2007-12-19 中国移动通信集团广东有限公司 A User Matching Method Based on Mobile Phone Address Entry
CN102843308A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Instant messaging method and system based on mobile terminal local address book
CN102891860A (en) * 2012-10-24 2013-01-23 北京深思洛克软件技术股份有限公司 Method for securely establishing relationships among contacts

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8600360B1 (en) * 2010-10-01 2013-12-03 Wallrust, Inc. Method and system for connecting people in a social network
CN103401758B (en) * 2013-07-11 2017-04-12 惠州Tcl移动通信有限公司 Communication method and system based on data network
CN104123350B (en) * 2014-07-09 2018-05-15 深圳创维数字技术有限公司 A kind of method, equipment and the system of social networks management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090404A (en) * 2007-05-31 2007-12-19 中国移动通信集团广东有限公司 A User Matching Method Based on Mobile Phone Address Entry
CN102843308A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Instant messaging method and system based on mobile terminal local address book
CN102891860A (en) * 2012-10-24 2013-01-23 北京深思洛克软件技术股份有限公司 Method for securely establishing relationships among contacts

Also Published As

Publication number Publication date
WO2016004768A1 (en) 2016-01-14
CN104123350A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN104123350B (en) A kind of method, equipment and the system of social networks management
JP5711430B2 (en) ID authentication management apparatus and method
WO2017054292A1 (en) Virtual sim card service authorization method, terminal, server, and system
CN104125485B (en) A kind of user profile shared method, equipment and system
CN106850794A (en) Method and apparatus, server and terminal for operating group
JP2014531660A (en) Method, apparatus and storage medium for adding friends in a social network
CN106101091B (en) Method and device for processing data between terminals
WO2019128930A1 (en) Operation processing method, account information processing method, device, and storage medium
CN105706416A (en) Network access
CN102882851B (en) The generation method of address list and server
WO2017206524A1 (en) Electronic device control method, terminal and control system
CN105093982B (en) Associate method, server and the system of sweeping robot and terminal
CN106897283A (en) The treating method and apparatus of multimedia messages
US11163827B2 (en) Video processing method, device, terminal and storage medium
CN106850703A (en) A kind of communication means and server based on social identity
CN105634882B (en) Method, apparatus and system for sharing network access equipment
CN111857498A (en) Data interaction method and device, and electronic device
CN104717127B (en) Method, terminal and the system of contact person's triggering are realized based on image recognition
WO2015117362A1 (en) Method and device for sharing personal information on terminal
CN104955003A (en) Business data query system and method thereof
CN106485471A (en) The implementation method of partnership relation and its realize system
WO2016197884A1 (en) Identity-based data processing method and device
CN108234409B (en) Identity verification method and device
CN108234113B (en) Identity verification method, device and system
CN1984367A (en) Method and system for inquiring SMS

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Applicant after: SHENZHEN SKYWORTH SOFTWARE Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY Co.,Ltd.

Applicant before: SHENZHEN SKYWORTH SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180515