[go: up one dir, main page]

CN104702493A - Instant messaging friend recommendation method and instant messaging friend recommendation device - Google Patents

Instant messaging friend recommendation method and instant messaging friend recommendation device Download PDF

Info

Publication number
CN104702493A
CN104702493A CN201510145977.7A CN201510145977A CN104702493A CN 104702493 A CN104702493 A CN 104702493A CN 201510145977 A CN201510145977 A CN 201510145977A CN 104702493 A CN104702493 A CN 104702493A
Authority
CN
China
Prior art keywords
user
information
good friend
cohesion
cohesion information
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.)
Granted
Application number
CN201510145977.7A
Other languages
Chinese (zh)
Other versions
CN104702493B (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510145977.7A priority Critical patent/CN104702493B/en
Priority claimed from CN201210224443.XA external-priority patent/CN102724139B/en
Publication of CN104702493A publication Critical patent/CN104702493A/en
Application granted granted Critical
Publication of CN104702493B publication Critical patent/CN104702493B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了即时通信好友推荐方法及装置,其中,所述方法包括:获取第一即时通信IM用户与第二IM用户的共同好友;获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息;如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。通过本发明,能够在推荐好友时,提高推荐的有效性。

The present invention discloses a method and device for recommending friends in instant messaging, wherein the method includes: obtaining mutual friends of a first instant messaging IM user and a second IM user; obtaining mutual friends between the first IM user and the common friends First intimacy information, and second intimacy information between the second IM user and the mutual friend; if both the first intimacy information and the second intimacy information meet a preset condition, then Sending recommendation information for adding the other party as a friend to the first IM user and/or the second IM user. Through the present invention, the effectiveness of recommendation can be improved when recommending friends.

Description

即时通信好友推荐方法及装置Instant messaging friend recommendation method and device

技术领域technical field

本发明涉及即时通信技术领域,特别是涉及即时通信好友推荐方法及装置。The invention relates to the technical field of instant messaging, in particular to a method and device for recommending friends in instant messaging.

背景技术Background technique

即时通信(IM)是一种基于网络的通信服务,一般以实现网络上的即时通信为主。即时通信工具是指实现网络即时通信服务的软件,从狭义上讲,也可以认为是即时通信客户端软件。即时通信工具发展到今天,已经被大多数的网民所接受,无论是平时的休闲娱乐中,还是日常工作中,都得到了广泛的应用,已经成为了网络用户日常生活中不可缺少的工具之一。因此,IM用户对即时通信工具的易用性、稳定性及安全性等多方面都提出了较高的要求。Instant Messaging (IM) is a network-based communication service, and generally focuses on realizing instant messaging on the network. Instant messaging tools refer to software that realizes network instant messaging services. In a narrow sense, they can also be considered as instant messaging client software. The development of instant messaging tools has been accepted by most netizens, whether it is in daily leisure and entertainment, or in daily work, it has been widely used and has become one of the indispensable tools in the daily life of Internet users. . Therefore, IM users put forward higher requirements on the ease of use, stability and security of instant messaging tools.

IM用户可以把需要联系的其他IM用户加入到好友(或称联系人)名单中,通过即时通信的状态呈现技术获知好友的在线/离线状态,随时与之发起实时的对话,从而达到了信息即时交流的目的。为了便于IM用户操作联系人,即时通信工具通常提供好友管理功能,包括好友的添加、归类、删除等等。IM users can add other IM users who need to be contacted to the friend (or contact) list, know the online/offline status of friends through instant messaging status presentation technology, and initiate real-time dialogues with them at any time, thus achieving instant information. purpose of communication. In order to facilitate IM users to operate contacts, instant messaging tools usually provide friend management functions, including adding, categorizing, and deleting friends.

在传统的实现方式下,好友的查找与发现通常有两种方式,一种是IM用户通过查看即时通信系统的服务器提供的在线IM用户列表来实现好友的发现;另一种是IM用户通过其他途径,例如朋友告知、web等场合公开的信息等得到其他IM用户的即时通信数字ID或昵称等身份标识信息,再将该身份标识信息输入服务器进行检索,来实现好友的发现。发现之后,就可以直接向对方发送加为好友的请求,收到请求的一方,可以选择接受或者拒绝该请求。Under the traditional implementation mode, there are usually two ways to search and discover friends. One is that the IM user realizes the discovery of friends by checking the online IM user list provided by the server of the instant messaging system; Ways, such as friend notices, information disclosed on occasions such as the web, etc., obtain identity information such as instant messaging digital IDs or nicknames of other IM users, and then input the identity information into the server for retrieval, so as to realize the discovery of friends. After discovering, you can directly send a request to be added as a friend to the other party, and the party receiving the request can choose to accept or reject the request.

在上述传统的实现方式中,都是由IM用户主动去发现可能成为其好友的IM用户,然后进行添加。为了扩展IM用户发现好友的途径,现有技术中还出现了即时通信工具为IM用户进行好友推荐的实现方式,IM用户在发现被推荐的IM用户时,还可以查看被推荐IM用户的材料,如果接受推荐,还可以向被推荐IM用户发出加为好友的请求。现有技术在进行好友推荐时,主要是依据当前IM用户与另一IM用户之间的共同好友的数量来进行推荐。例如,IM用户A与IM用户B之间有10个共同好友,共同好友的数目比较多,则可以推荐IM用户A加IM用户B为好友,或者推荐IM用户B加IM用户A为好友。In the above-mentioned traditional implementation manners, the IM user actively discovers the IM users who may become his friends, and then adds them. In order to expand the way for IM users to find friends, an instant communication tool has also appeared in the prior art to implement friend recommendation for IM users. When an IM user finds a recommended IM user, he can also check the materials of the recommended IM user. If the recommendation is accepted, a request to be added as a friend can also be sent to the recommended IM user. When recommending friends in the prior art, the recommendation is mainly based on the number of common friends between the current IM user and another IM user. For example, there are 10 mutual friends between IM user A and IM user B, and the number of common friends is relatively large, then IM user A plus IM user B can be recommended as friends, or IM user B plus IM user A can be recommended as friends.

但是,在实际应用中,在以共同好友的数量为依据进行好友推荐时,经常出现无效推荐的情况,所谓无效推荐是指,向IM用户进行了推荐,但是被IM用户拒绝,或者IM用户置之不理。显然,过多的无效推荐,不仅会浪费系统的资源,还会导致IM用户接收到过多的无用信息,对IM用户对即时通信工具的正常使用造成干扰。However, in practical applications, when recommending friends based on the number of common friends, invalid recommendations often occur. The so-called invalid recommendation refers to a recommendation made to an IM user, but rejected by the IM user, or ignored by the IM user. . Obviously, too many invalid recommendations will not only waste system resources, but also cause IM users to receive too much useless information, which will interfere with the normal use of instant messaging tools by IM users.

因此,迫切需要本领域技术人员解决的技术问题就在于:如何在推荐好友时,提高推荐的有效性。Therefore, a technical problem that urgently needs to be solved by those skilled in the art is: how to improve the effectiveness of recommendation when recommending friends.

发明内容Contents of the invention

本发明提供了即时通信好友推荐方法及装置,能够在推荐好友时,提高推荐的有效性。The invention provides a method and device for recommending friends in instant messaging, which can improve the effectiveness of recommendation when recommending friends.

本发明提供了如下方案:The present invention provides following scheme:

一种即时通信好友推荐方法,包括:A method for recommending friends in instant messaging, comprising:

获取第一即时通信IM用户与第二IM用户的共同好友;Obtain the mutual friends of the first instant messaging IM user and the second IM user;

获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息;acquiring first intimacy information between the first IM user and the mutual friend, and second intimacy information between the second IM user and the mutual friend;

如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。If both the first intimacy information and the second intimacy information meet a preset condition, sending recommendation information to add the other party as a friend to the first IM user and/or the second IM user.

可选的,所述共同好友为多个时,所述获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息,包括:Optionally, when there are multiple mutual friends, the acquiring the first intimacy information between the first IM user and the mutual friends, and the information about the first intimacy between the second IM user and the mutual friends Second intimacy information for , including:

分别获取所述第一IM用户与各个共同好友之间的第一亲密度信息,以及所述第二IM用户与各个共同好友之间的第二亲密度信息;Respectively acquire first intimacy information between the first IM user and each mutual friend, and second intimacy information between the second IM user and each mutual friend;

所述如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息,包括:If both the first intimacy information and the second intimacy information meet a preset condition, sending recommendation information to add the other party as a friend to the first IM user and/or the second IM user, including:

如果所述第一IM用户与各个共同好友之间的第一亲密度信息的平均值,以及所述第二IM用户与各个共同好友之间的第二亲密度信息的平均值,均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。If the average value of the first intimacy information between the first IM user and each mutual friend and the average value of the second intimacy information between the second IM user and each mutual friend reach a preset condition, send recommendation information to add the other party as a friend to the first IM user and/or the second IM user.

可选的,通过以下方式获取两个IM用户之间的亲密度信息,包括:Optionally, the intimacy information between two IM users is obtained through the following methods, including:

对两个IM用户之间的互动情况进行统计;Make statistics on the interaction between two IM users;

根据统计结果,获取这两个IM用户之间的亲密度信息。According to the statistical results, the intimacy information between the two IM users is acquired.

可选的,所述对两个IM用户之间的互动情况进行统计包括:Optionally, the making statistics on the interaction between two IM users includes:

在两个IM用户首次成为对方的好友时,为两者之间的亲密度信息赋予初始值;When two IM users become each other's friends for the first time, assign an initial value to the intimacy information between them;

记录两者之间互动的次数,随着互动次数的增加,增大两者之间亲密度信息的取值。Record the number of interactions between the two, and increase the value of the intimacy information between the two as the number of interactions increases.

可选的,所述亲密度信息为亲密度等级,所述随着互动次数的增加,增大两者之间亲密度信息的取值包括:Optionally, the intimacy information is an intimacy level, and as the number of interactions increases, increasing the value of the intimacy information between the two includes:

当互动次数达到预置条件时,提升所述亲密度等级。When the number of interactions reaches a preset condition, the level of intimacy is increased.

一种即时通信好友推荐装置,包括:An instant messaging friend recommendation device, comprising:

共同好友获取单元,用于获取第一IM用户与第二IM用户的共同好友;A common friend acquiring unit, configured to acquire common friends of the first IM user and the second IM user;

亲密度信息获取单元,用于获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息;an intimacy information acquiring unit, configured to acquire first intimacy information between the first IM user and the mutual friend, and second intimacy information between the second IM user and the mutual friend;

推荐单元,用于如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。A recommendation unit, configured to send recommendation information to add the other party as a friend to the first IM user and/or the second IM user if the first intimacy information and the second intimacy information both meet a preset condition .

可选的,所述共同好友为多个时,所述亲密度信息获取单元具体用于:Optionally, when there are multiple mutual friends, the intimacy information acquisition unit is specifically configured to:

分别获取所述第一IM用户与各个共同好友之间的第一亲密度信息,以及所述第二IM用户与各个共同好友之间的第二亲密度信息;Respectively acquire first intimacy information between the first IM user and each mutual friend, and second intimacy information between the second IM user and each mutual friend;

所述推荐单元具体用于:The recommended unit is specifically used for:

如果所述第一IM用户与各个共同好友之间的第一亲密度信息的平均值,以及所述第二IM用户与各个共同好友之间的第二亲密度信息的平均值,均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。If the average value of the first intimacy information between the first IM user and each mutual friend and the average value of the second intimacy information between the second IM user and each mutual friend reach a preset condition, send recommendation information to add the other party as a friend to the first IM user and/or the second IM user.

可选的,所述亲密度信息获取单元包括:Optionally, the intimacy information acquisition unit includes:

统计子单元,用于对两个IM用户之间的互动情况进行统计;A statistics subunit is used to make statistics on the interaction between two IM users;

获取子单元,用于根据统计结果,获取这两个IM用户之间的亲密度信息。The obtaining subunit is used to obtain the intimacy information between the two IM users according to the statistical results.

可选的,所述统计子单元包括:Optionally, the statistical subunit includes:

初始值赋予子单元,用于在两个IM用户首次成为对方的好友时,为两者之间的亲密度信息赋予初始值;The initial value assignment subunit is used to assign an initial value to the intimacy information between two IM users when they become friends with each other for the first time;

更新子单元,用于记录两者之间互动的次数,随着互动次数的增加,增大两者之间亲密度信息的取值。The update subunit is used to record the number of interactions between the two, and increases the value of the intimacy information between the two as the number of interactions increases.

可选的,所述亲密度信息为亲密度等级,所述更新子单元包括:Optionally, the intimacy information is an intimacy level, and the update subunit includes:

等级提升子单元,用于当互动次数达到预置条件时,提升所述亲密度等级。The level increasing subunit is used to increase the intimacy level when the number of interactions reaches a preset condition.

根据本发明提供的具体实施例,本发明公开了以下技术效果:According to the specific embodiments provided by the invention, the invention discloses the following technical effects:

通过本发明,在两个IM用户之间进行添加好友的推荐之前,可以首先获取两者的共同好友,并分别获取两个IM用户与该共同好友之间的亲密度信息,如果两个IM用户与该共同好友之间的亲密度信息均达到预置的条件,则证明这两个IM用户的潜在亲密度也比较高,因此,可以在这两个IM用户之间进行添加好友的推荐,这样,可以提高添加好友推荐的有效性。Through the present invention, before two IM users are recommended to add friends, they can first obtain the common friends of the two, and respectively obtain the intimacy information between the two IM users and the common friends. If the two IM users If the intimacy information with the mutual friend reaches the preset condition, it proves that the potential intimacy of the two IM users is also relatively high. Therefore, it is possible to recommend adding friends between the two IM users. , can improve the effectiveness of adding friend recommendations.

附图说明Description of drawings

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

图1是本发明实施例提供的方法的流程图;Fig. 1 is the flowchart of the method provided by the embodiment of the present invention;

图2是本发明实施例提供的装置的示意图。Fig. 2 is a schematic diagram of a device 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. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

参见图1,本发明实施例提供的推荐好友的方法包括以下步骤:Referring to Fig. 1, the method for recommending a friend provided by an embodiment of the present invention includes the following steps:

S101:获取第一IM用户与第二IM用户的共同好友;S101: Obtain mutual friends of the first IM user and the second IM user;

在本发明实施例中,为了确定是否需要在IM用户A与IM用户B之间进行好友推荐,首先需要提取两者之间的共同好友,然后再进行进一步的判断。其中,所谓IM用户A与IM用户B之间的共同好友,就是指既是IM用户A的好友,同时也是IM用户B的好友;即时通信工具在提取共同好友时,就可以分别取出IM用户A与IM用户B的好友列表(IM用户的好友列表在即时通信工具的服务器端都会进行保存),将两个好友列表进行比对,既出现在IM用户A的好友列表中,又出现在IM用户B的好友列表中的IM用户,就是IM用户A与IM用户B的共同好友。在实际应用中,两个IM用户之间的共同好友可能有多个,此时,也可以都提取出来,分别作为判断的基础。In the embodiment of the present invention, in order to determine whether to recommend friends between IM user A and IM user B, it is first necessary to extract common friends between the two, and then make further judgments. Wherein, the mutual friend between so-called IM user A and IM user B refers to not only the friend of IM user A, but also the friend of IM user B; IM user B's friend list (the IM user's friend list will be saved on the server side of the instant messaging tool), compare the two friend lists, and both appear in the IM user A's friend list and appear in the IM user B's The IM users in the friend list are mutual friends of the IM user A and the IM user B. In practical applications, there may be multiple mutual friends between two IM users. In this case, all of them may be extracted and used as a basis for judgment respectively.

S102:获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息;S102: Obtain first intimacy information between the first IM user and the mutual friend, and second intimacy information between the second IM user and the mutual friend;

在本发明实施例中,为了向IM用户进行好友的推荐,可以获取到两个IM用户之间的共同好友之后,再获取两个IM用户分别该与共同IM用户之间的亲密度信息,如果两个IM用户分别与该共同好友之间的亲密度都很高,则证明这两个IM用户之间潜在的亲密度也很高,因此,就可以在这两个IM用户之间进行好友推荐。例如,假设IM用户A与IM用户B当前不是好友关系,但是,即时通信工具发现IM用户A与IM用户B具有一共同好友C,并且IM用户A与IM用户C之间的亲密度很高,IM用户B与IM用户C的亲密度也很高,则可以证明IM用户A与IM用户B很可能也认识,或者在某些领域具有相同或者相似的兴趣爱好,比较有共同的话题,等等,因此,两者之间潜在的亲密度也会比较高,如果在IM用户A与IM用户B之间进行好友推荐,则接受该推荐的概率就比较高,进而降低出现无效推荐的概率。In the embodiment of the present invention, in order to recommend a friend to an IM user, the mutual friend between the two IM users can be obtained, and then the intimacy information between the two IM users and the common IM user can be obtained, if If the intimacy between the two IM users and the common friend is high, it proves that the potential intimacy between the two IM users is also high, therefore, friend recommendation can be made between the two IM users . For example, assume that IM user A and IM user B are not currently friends, but the instant messaging tool finds that IM user A and IM user B have a common friend C, and the intimacy between IM user A and IM user C is very high, The intimacy between IM user B and IM user C is also high, which can prove that IM user A and IM user B probably also know each other, or have the same or similar hobbies in certain fields, have common topics, etc. , therefore, the potential intimacy between the two will be relatively high. If a friend recommendation is made between IM user A and IM user B, the probability of accepting the recommendation will be relatively high, thereby reducing the probability of invalid recommendation.

其中,在获取两个IM用户之间的亲密度信息时,可以有多种实现方式。例如,在其中一种实现方式下,可以对两个IM用户之间的互动情况进行统计,根据统计的结果,来获取两个IM用户之间的亲密度信息。其中,所谓的互动情况,可以是指两个IM用户通过即时通信工具建立会话(例如通过即时通信工具进行聊天)的情况,还可以包括给对方发表的信息进行评论或者回复的情况,还可以包括访问对方的个人空间的情况,等等。如果两个IM用户之间互动的次数比较多或者频繁,则证明两个IM用户之间的亲密度会比较高。Among them, when obtaining the intimacy information between two IM users, there may be multiple implementation manners. For example, in one of the implementation manners, the interaction between two IM users can be counted, and the intimacy information between the two IM users can be obtained according to the statistical results. Wherein, the so-called interaction situation may refer to a situation in which two IM users establish a conversation through an instant messaging tool (such as chatting through an instant messaging tool), and may also include a situation in which they comment on or reply to information published by the other party, and may also include The case of accessing the other party's personal space, and so on. If there are many or frequent interactions between two IM users, it proves that the intimacy between the two IM users will be relatively high.

具体实现时,可以在两个IM用户首次成为对方的好友时,为两者之间的亲密度信息赋予初始值;然后记录两者之间互动的次数,随着互动次数的增加,来增大两者之间亲密度信息的取值。例如,该亲密度信息可以由亲密度等级来表示,在两个IM用户首次成为好友时,可以给亲密度等级赋予初始值,然后当互动次数达到预置条件时,提升两者之间的亲密度等级。具体实现时,该初始值以及预置条件可以根据实际需要灵活设置,例如在一种实现方式下,可以如下进行:在IM用户甲与IM用户乙首次成为好友时,赋予初始亲密度等级为n=1;当亲密度等级为n时,在该等级下,IM用户甲与IM用户乙互动次数达到100*5n-1,则亲密度升为n+1。例如:当IM用户甲与IM用户乙的亲密度为n=1时,互动次数累计达到100条,则升为2级;在2级下累计互动次数达到500条(总互动次数为600条),升为3级,以此类推。In specific implementation, when two IM users become friends with each other for the first time, an initial value can be assigned to the intimacy information between the two; The value of the intimacy information between the two. For example, the intimacy information can be represented by an intimacy level. When two IM users become friends for the first time, an initial value can be given to the intimacy level, and then when the number of interactions reaches a preset condition, the intimacy between the two can be increased. degree level. During specific implementation, the initial value and preset conditions can be flexibly set according to actual needs. For example, in one implementation mode, it can be performed as follows: when IM user A and IM user B become friends for the first time, the initial intimacy level is given as n =1; when the level of intimacy is n, under this level, the number of interactions between IM user A and IM user B reaches 100*5 n-1 , and the level of intimacy increases to n+1. For example: when the intimacy between IM user A and IM user B is n=1, and the cumulative number of interactions reaches 100, it will be upgraded to level 2; the cumulative number of interactions at level 2 reaches 500 (the total number of interactions is 600) , upgraded to level 3, and so on.

当然,在实际应用中,也可以依据其他信息来建立两个IM用户之间的亲密度信息,例如两个IM用户之间的共同好友数目,如果两个IM用户之间的共同好友数目越多,则两个IM用户之间的亲密度越高,等等。或者,还可以将多种评判亲密度的依据相结合,来最终综合确定出两个IM用户之间的亲密度,这里不再赘述。另外,两个IM用户之间的亲密度并不是一个固定的值,而是随着IM用户之间的互动次数的变化等可能会发生变化,因此,在依据上述方法进行好友推荐的过程也可以是个动态的过程,例如,可以每隔一段时间进行一次尝试,等等。Of course, in practical applications, the intimacy information between two IM users can also be established based on other information, such as the number of common friends between two IM users, if the number of common friends between two IM users is more , the higher the intimacy between two IM users, and so on. Alternatively, multiple bases for judging the intimacy can also be combined to finally comprehensively determine the intimacy between two IM users, which will not be repeated here. In addition, the intimacy between two IM users is not a fixed value, but may change as the number of interactions between IM users changes. Therefore, the process of recommending friends according to the above method can also be Is a dynamic process, e.g. attempts can be made every so often, etc.

S102:如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。S102: If both the first intimacy information and the second intimacy information meet a preset condition, send recommendation information to add the other party as a friend to the first IM user and/or the second IM user.

如前文所述,如果IM用户A与其好友IM用户C的亲密度比较高,同时,IM用户C也是IM用户B的好友,并且IM用户B与其好友IM用户C的亲密度也比较高,则可以在IM用户A与IM用户B之间进行添加对方为好友的推荐。其中,在IM用户A与IM用户B之间进行推荐时,可以将推荐消息推送给IM用户A,也可以推荐给IM用户B,或者还可以同时向两个IM用户都进行推送。在显示推荐消息的同时,还可以向IM用户显示出此次推荐的依据,例如向IM用户A推荐加IM用户B为好友的推荐消息时,可以同时向IM用户显示以下信息:“与您亲密度较高的好友C,也是该IM用户的好友,并且您的好友C与该IM用户的亲密度也比较高”,当然,具体的描述方式可以不限于此。总之,IM用户在接收到好友推荐消息的同时,再结合该推荐的依据进行判断,接受该推荐的概率就会比较高,提高推荐的有效性。As mentioned above, if the intimacy between IM user A and its friend IM user C is relatively high, and at the same time, IM user C is also a friend of IM user B, and the intimacy between IM user B and its friend IM user C is relatively high, then it can be A recommendation is made between IM user A and IM user B to add the other party as a friend. Wherein, when recommending between IM user A and IM user B, the recommendation message may be pushed to IM user A, or to IM user B, or may be pushed to both IM users at the same time. While displaying the recommendation message, the basis for this recommendation can also be displayed to the IM user. For example, when recommending a recommendation message with IM user B as a friend to IM user A, the following information can be displayed to the IM user at the same time: "I am close to you Friend C with a high degree of intimacy is also a friend of the IM user, and your friend C has a relatively high degree of intimacy with the IM user." Of course, the specific description method may not be limited to this. In short, when an IM user receives a recommendation message from a friend and makes a judgment based on the basis of the recommendation, the probability of accepting the recommendation will be relatively high, which improves the effectiveness of the recommendation.

在实际应用中,如果两个IM用户之间的共同好友有多个,则可以分别获取到这两个IM用户分别与各个共同好友之间的亲密度信息,然后取平均值,作为这两个IM用户与其共同好友之间的亲密度信息。例如,假设IM用户A与IM用户B之间具有两个共同好友,分别为IM用户C和IM用户D,则可以首先获取到IM用户A与IM用户C之间的亲密度信息a1,IM用户A与IM用户D之间的亲密度信息a2,然后取a1与a2的平均值即可得到IM用户A与两者之间的共同好友之间的第一亲密度信息;同样的,获取到IM用户B与IM用户C之间的亲密度信息b1,IM用户B与IM用户D之间的亲密度信息b2,然后取b1与b2的平均值即可得到IM用户B与两者之间的共同好友之间的第二亲密度信息,然后再分别判断第一亲密度信息与第二亲密度信息是否均达到预置的条件。当然,针对上述两个IM用户之间具有多个共同好友的情况,在分别获取第一亲密度信息与第二亲密度信息时,也可以取IM用户与各个共同好友之间的亲密度信息中的最大值,等等,这里不进行限定。In practical applications, if there are multiple mutual friends between two IM users, the intimacy information between the two IM users and each mutual friend can be obtained respectively, and then the average value is taken as the two Intimacy information between IM users and their mutual friends. For example, assuming that IM user A and IM user B have two mutual friends, namely IM user C and IM user D, the intimacy information a1 between IM user A and IM user C can be obtained first, and the IM user The intimacy information a2 between A and IM user D, and then take the average value of a1 and a2 to get the first intimacy information between IM user A and the mutual friends between them; The intimacy information b1 between user B and IM user C, the intimacy information b2 between IM user B and IM user D, and then take the average value of b1 and b2 to get the common The second intimacy information between friends, and then respectively judge whether the first intimacy information and the second intimacy information meet the preset conditions. Of course, for the above-mentioned situation where two IM users have multiple mutual friends, when obtaining the first intimacy information and the second intimacy information respectively, the intimacy information between the IM user and each common friend can also be obtained. The maximum value of , etc., are not limited here.

总之,在本发明实施例中,在两个IM用户之间进行添加好友的推荐之前,可以首先获取两者的共同好友,并分别获取两个IM用户与该共同好友之间的亲密度信息,如果两个IM用户与该共同好友之间的亲密度信息均达到预置的条件,则证明这两个IM用户的潜在亲密度也比较高,因此,可以在这两个IM用户之间进行添加好友的推荐,这样,可以提高添加好友推荐的有效性。In a word, in the embodiment of the present invention, before two IM users are recommended to add a friend, the common friend of the two can be obtained first, and the intimacy information between the two IM users and the common friend can be obtained respectively, If the intimacy information between the two IM users and the mutual friend reaches the preset condition, it proves that the potential intimacy of the two IM users is relatively high, therefore, it is possible to add In this way, the effectiveness of adding friend recommendations can be improved.

与本发明实施例提供的即时通信好友推荐方法相对应,本发明实施例还提供了一种即时通信好友推荐装置,参见图2,该装置可以包括:Corresponding to the instant messaging friend recommendation method provided by the embodiment of the present invention, the embodiment of the present invention also provides an instant messaging friend recommendation device, see FIG. 2, the device may include:

共同好友获取单元201,用于获取第一IM用户与第二IM用户的共同好友;A common friend acquiring unit 201, configured to acquire common friends of the first IM user and the second IM user;

亲密度信息获取单元202,用于获取所述第一IM用户与所述共同好友之间的第一亲密度信息,以及所述第二IM用户与所述共同好友之间的第二亲密度信息;An intimacy information acquiring unit 202, configured to acquire first intimacy information between the first IM user and the mutual friend, and second intimacy information between the second IM user and the mutual friend ;

推荐单元203,用于如果所述第一亲密度信息以及所述第二亲密度信息均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。A recommending unit 203, configured to send a recommendation to add the other party as a friend to the first IM user and/or the second IM user if the first intimacy information and the second intimacy information both meet a preset condition information.

其中,当所述共同好友为多个时,亲密度信息获取单元202具体可以用于:Wherein, when there are multiple mutual friends, the intimacy information acquiring unit 202 can specifically be used for:

分别获取所述第一IM用户与各个共同好友之间的第一亲密度信息,以及所述第二IM用户与各个共同好友之间的第二亲密度信息;Respectively acquire first intimacy information between the first IM user and each mutual friend, and second intimacy information between the second IM user and each mutual friend;

推荐单元203具体可以用于:The recommendation unit 203 can specifically be used for:

如果所述第一IM用户与各个共同好友之间的第一亲密度信息的平均值,以及所述第二IM用户与各个共同好友之间的第二亲密度信息的平均值,均达到预置条件,则向所述第一IM用户和/或第二IM用户发送添加对方为好友的推荐信息。If the average value of the first intimacy information between the first IM user and each mutual friend and the average value of the second intimacy information between the second IM user and each mutual friend reach a preset condition, send recommendation information to add the other party as a friend to the first IM user and/or the second IM user.

具体实现时,亲密度信息获取单元202可以包括:During specific implementation, the intimacy information acquiring unit 202 may include:

统计子单元,用于对两个IM用户之间的互动情况进行统计;A statistics subunit is used to make statistics on the interaction between two IM users;

获取子单元,用于根据统计结果,获取这两个IM用户之间的亲密度信息。The obtaining subunit is used to obtain the intimacy information between the two IM users according to the statistical results.

其中,所述统计子单元可以包括:Wherein, the statistical subunit may include:

初始值赋予子单元,用于在两个IM用户首次成为对方的好友时,为两者之间的亲密度信息赋予初始值;The initial value assignment subunit is used to assign an initial value to the intimacy information between two IM users when they become friends with each other for the first time;

更新子单元,用于记录两者之间互动的次数,随着互动次数的增加,增大两者之间亲密度信息的取值。The update subunit is used to record the number of interactions between the two, and increases the value of the intimacy information between the two as the number of interactions increases.

其中,所述亲密度信息为亲密度等级,所述更新子单元包括:Wherein, the intimacy information is an intimacy level, and the update subunit includes:

等级提升子单元,用于当互动次数达到预置条件时,提升所述亲密度等级。The level increasing subunit is used to increase the intimacy level when the number of interactions reaches a preset condition.

总之,在本发明实施例中,在两个IM用户之间进行添加好友的推荐之前,可以首先获取两者的共同好友,并分别获取两个IM用户与该共同好友之间的亲密度信息,如果两个IM用户与该共同好友之间的亲密度信息均达到预置的条件,则证明这两个IM用户的潜在亲密度也比较高,因此,可以在这两个IM用户之间进行添加好友的推荐,这样,可以提高添加好友推荐的有效性。In a word, in the embodiment of the present invention, before two IM users are recommended to add a friend, the common friend of the two can be obtained first, and the intimacy information between the two IM users and the common friend can be obtained respectively, If the intimacy information between the two IM users and the mutual friend reaches the preset condition, it proves that the potential intimacy of the two IM users is relatively high, therefore, it is possible to add In this way, the effectiveness of adding friend recommendations can be improved.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。It can be seen from the above description of the implementation manners that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiments. The device and system embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, It can be located in one place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

以上对本发明所提供的即时通信好友推荐方法及装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本发明的限制。The method and device for recommending instant messaging friends provided by the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1. an instant messaging friend recommendation method, is characterized in that, comprising:
Obtain the common good friend of the first instant messaging IM user and the 2nd IM user;
Obtain the first cohesion information between a described IM user and described common good friend, and the second cohesion information between described 2nd IM user and described common good friend;
If described first cohesion information and described second cohesion information all reach prerequisite, then send to a described IM user and/or the 2nd IM user and add the recommendation information that the other side is good friend.
2. method according to claim 1, it is characterized in that, when described common good friend is multiple, the first cohesion information between the described IM user of described acquisition and described common good friend, and the second cohesion information between described 2nd IM user and described common good friend, comprising:
Obtain the first cohesion information between a described IM user and each common good friend respectively, and the second cohesion information between described 2nd IM user and each common good friend;
If described first cohesion information and described second cohesion information all reach prerequisite, then send to a described IM user and/or the 2nd IM user and add the recommendation information that the other side is good friend, comprising:
If the mean value of the first cohesion information between a described IM user and each common good friend, and the mean value of the second cohesion information between described 2nd IM user and each common good friend, all reach prerequisite, then send to a described IM user and/or the 2nd IM user and add the recommendation information that the other side is good friend.
3. method according to claim 1, is characterized in that, obtains the cohesion information between two IM users in the following manner, comprising:
Interactive situation between two IM users is added up;
According to statistics, obtain the cohesion information between these two IM users.
4. method according to claim 3, is characterized in that, describedly carries out statistics to the interactive situation between two IM users and comprises:
When two IM users become the good friend of the other side first, for cohesion information between the two gives initial value;
The number of times that record is interactive between the two, along with the increase of interactive number of times, increases the value of cohesion information between the two.
5. method according to claim 4, is characterized in that, described cohesion information is cohesion grade, the described increase along with interactive number of times, and the value increasing cohesion information between the two comprises:
When interactive number of times reaches prerequisite, promote described cohesion grade.
6. an instant messaging friend recommendation device, is characterized in that, comprising:
Common good friend's acquiring unit, for obtaining the common good friend of an IM user and the 2nd IM user;
Cohesion information acquisition unit, for obtaining the first cohesion information between a described IM user and described common good friend, and the second cohesion information between described 2nd IM user and described common good friend;
Recommendation unit, if all reach prerequisite for described first cohesion information and described second cohesion information, then sends to a described IM user and/or the 2nd IM user and adds the recommendation information that the other side is good friend.
7. device according to claim 6, is characterized in that, when described common good friend is multiple, described cohesion information acquisition unit specifically for:
Obtain the first cohesion information between a described IM user and each common good friend respectively, and the second cohesion information between described 2nd IM user and each common good friend;
Described recommendation unit specifically for:
If the mean value of the first cohesion information between a described IM user and each common good friend, and the mean value of the second cohesion information between described 2nd IM user and each common good friend, all reach prerequisite, then send to a described IM user and/or the 2nd IM user and add the recommendation information that the other side is good friend.
8. device according to claim 7, is characterized in that, described cohesion information acquisition unit comprises:
Statistics subelement, for adding up the interactive situation between two IM users;
Obtain subelement, for according to statistics, obtain the cohesion information between these two IM users.
9. device according to claim 8, is characterized in that, described statistics subelement comprises:
Subelement given by initial value, for when two IM users become the good friend of the other side first, for cohesion information between the two gives initial value;
Upgrading subelement, for recording interactive number of times between the two, along with the increase of interactive number of times, increasing the value of cohesion information between the two.
10. device according to claim 9, is characterized in that, described cohesion information is cohesion grade, and described renewal subelement comprises:
Grade promotes subelement, for when interactive number of times reaches prerequisite, promotes described cohesion grade.
CN201510145977.7A 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device Expired - Fee Related CN104702493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510145977.7A CN104702493B (en) 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510145977.7A CN104702493B (en) 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device
CN201210224443.XA CN102724139B (en) 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210224443.XA Division CN102724139B (en) 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device

Publications (2)

Publication Number Publication Date
CN104702493A true CN104702493A (en) 2015-06-10
CN104702493B CN104702493B (en) 2018-07-10

Family

ID=53349279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510145977.7A Expired - Fee Related CN104702493B (en) 2012-06-28 2012-06-28 Instant messaging friend recommendation method and device

Country Status (1)

Country Link
CN (1) CN104702493B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686198A (en) * 2015-11-06 2017-05-17 中国移动通信集团公司 Address book management method, intimacy information management method and device
CN109996192A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Information recommendation method, device and computer readable storage medium based on cohesion
CN113254836A (en) * 2021-06-16 2021-08-13 长沙豆芽文化科技有限公司 Intelligent child-care knowledge point information pushing method and system and cloud platform

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008005603A2 (en) * 2006-06-30 2008-01-10 Motorola, Inc. Mobile stations operating within a personal area network
US20080016218A1 (en) * 2006-07-14 2008-01-17 Chacha Search Inc. Method and system for sharing and accessing resources
CN101540739A (en) * 2009-04-14 2009-09-23 腾讯科技(深圳)有限公司 User recommendation method and user recommendation system
CN101770459A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method and device for recommending friends
CN101968818A (en) * 2010-11-08 2011-02-09 北京开心人信息技术有限公司 Method and system for recommending fiends to user in social network site
CN102111424A (en) * 2009-12-28 2011-06-29 腾讯科技(深圳)有限公司 Method and system for pushing information through SNS network node relation chain
CN102255890A (en) * 2011-05-30 2011-11-23 苏宁军 User recommendation and information interaction system and method
CN102510551A (en) * 2011-09-30 2012-06-20 奇智软件(北京)有限公司 Method and device for automatically recommending friends in mobile communication tools

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008005603A2 (en) * 2006-06-30 2008-01-10 Motorola, Inc. Mobile stations operating within a personal area network
US20080016218A1 (en) * 2006-07-14 2008-01-17 Chacha Search Inc. Method and system for sharing and accessing resources
CN101770459A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Method and device for recommending friends
CN101540739A (en) * 2009-04-14 2009-09-23 腾讯科技(深圳)有限公司 User recommendation method and user recommendation system
CN102111424A (en) * 2009-12-28 2011-06-29 腾讯科技(深圳)有限公司 Method and system for pushing information through SNS network node relation chain
CN101968818A (en) * 2010-11-08 2011-02-09 北京开心人信息技术有限公司 Method and system for recommending fiends to user in social network site
CN102255890A (en) * 2011-05-30 2011-11-23 苏宁军 User recommendation and information interaction system and method
CN102510551A (en) * 2011-09-30 2012-06-20 奇智软件(北京)有限公司 Method and device for automatically recommending friends in mobile communication tools

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686198A (en) * 2015-11-06 2017-05-17 中国移动通信集团公司 Address book management method, intimacy information management method and device
CN109996192A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Information recommendation method, device and computer readable storage medium based on cohesion
CN109996192B (en) * 2018-01-02 2022-02-18 中国移动通信有限公司研究院 Intimacy-based information recommendation method and device and computer-readable storage medium
CN113254836A (en) * 2021-06-16 2021-08-13 长沙豆芽文化科技有限公司 Intelligent child-care knowledge point information pushing method and system and cloud platform
CN113254836B (en) * 2021-06-16 2021-09-14 长沙豆芽文化科技有限公司 Intelligent child-care knowledge point information pushing method and system and cloud platform

Also Published As

Publication number Publication date
CN104702493B (en) 2018-07-10

Similar Documents

Publication Publication Date Title
CN102724139B (en) Instant messaging friend recommendation method and device
US10587550B1 (en) System and method for evaluating domains to send emails while maintaining sender reputation
US8612483B2 (en) Link swarming in an open overlay for social networks and online services
CN103516581B (en) Add the method and device of instant messaging good friend
US8688742B2 (en) Open overlay for social networks and online services
US7792903B2 (en) Identity management for open overlay for social networks and online services
US8615550B2 (en) Client-side data scraping for open overlay for social networks and online services
US10277548B2 (en) Method and device for prompting dynamic information about contact person
CN103581111B (en) A kind of communication means and system
JP2019511775A (en) Techniques for messaging bot rich communication
CN102710556B (en) Method and device for adding friends in instant messaging
US10592865B2 (en) Methods, systems, and computer readable media for managing social interaction histories
CN102710755A (en) Data mining method of terminal user social network, correlation method, device and system
CN110601956A (en) Content aggregation method and device, computer equipment and storage medium
US9762518B2 (en) Cooperative session-based filtering
TW201251378A (en) Instant communication message transmitting method and device
CN110598103A (en) Content aggregation method and device, computer equipment and storage medium
CN102724140B (en) Instant messaging good friend's addition means and device
CN100433736C (en) Method for sharing instant news data
CN104702493B (en) Instant messaging friend recommendation method and device
CN106161186A (en) Instant communication method and device
CN104270357A (en) Service information sending method and device
CN102469039A (en) Intelligent network communication system and method
CN107424089A (en) Property management server, community interaction client and platform
CN102984148A (en) Method, device and system for content access control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180710

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