WO2013107115A1 - Method, client agent, terminal and system for adding sns friend - Google Patents

Method, client agent, terminal and system for adding sns friend Download PDF

Info

Publication number
WO2013107115A1
WO2013107115A1 PCT/CN2012/073971 CN2012073971W WO2013107115A1 WO 2013107115 A1 WO2013107115 A1 WO 2013107115A1 CN 2012073971 W CN2012073971 W CN 2012073971W WO 2013107115 A1 WO2013107115 A1 WO 2013107115A1
Authority
WO
WIPO (PCT)
Prior art keywords
sns
friend
account
terminal
website
Prior art date
Application number
PCT/CN2012/073971
Other languages
French (fr)
Chinese (zh)
Inventor
阳翰凌
袁磊
蒲竞春
陈波
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013107115A1 publication Critical patent/WO2013107115A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the invention relates to the field of computer network communication, and particularly relates to a method for adding a social network site (SNS) friend, an SNS client agent, a terminal and a system.
  • SNS social network site
  • the technical problem to be solved by the present invention is to provide a method and a system for adding an SNS friend, an SNS client agent, and a terminal, which can quickly and conveniently add an SNS friend account saved in a contact to a corresponding SNS client, thereby avoiding Heavy manual operations.
  • the present invention uses the following technical solutions:
  • a method of adding a social networking site SNS friend including:
  • the SNS client agent reads the SNS account information saved in the terminal;
  • the SNS client agent invokes an SNS website open interface according to the SNS account information. Add the SNS account as a friend of the end user.
  • the step of the SNS client agent reading the SNS account information saved in the terminal includes: the SNS client agent reading the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal MMS folder.
  • the SNS account information includes: an SNS type of the SNS account and the SNS account;
  • the step of the SNS client agent invoking the SNS website open interface according to the SNS account information, and adding the SNS account as the friend of the terminal user includes:
  • the SNS client agent invokes a corresponding one according to the SNS type of the SNS account.
  • the SNS website open interface adds the SNS account as a friend of the end user.
  • the method further includes:
  • the SNS client agent invokes the corresponding SNS website open interface to add the SNS account as a friend of the terminal user according to the SNS type of the SNS account
  • the SNS client agent logs the terminal user to the SNS website.
  • the login information and the SNS account are sent to the SNS website, and the added friend result returned by the SNS website is received; wherein the terminal user includes one or more.
  • the adding the friend result includes: adding the failure information, where the adding the failure information includes adding the failed SNS account information;
  • the method further includes: the SNS client agent presets a failure to re-add the number of times, and after receiving the adding failure information returned by the SNS website, determining whether the preset failure re-addition number is reached, if not And, according to the SNS type of the SNS account in the adding failure information, calling the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise, notifying the terminal user to add a friend fails; and/or
  • the SNS client agent prompts the user terminal to select to re-add the contact as a friend, and if the user terminal selects yes, the corresponding SNS website open interface is invoked according to the SNS type of the SNS account in the adding failure information.
  • the SNS account is added as a friend of the terminal user. Otherwise, the SNS account information that failed to be added is deleted.
  • a social network SNS client agent comprising a reading module and a friend adding module, wherein: the reading module is configured to: read SNS account information;
  • the buddy adding module is configured to: add an SNS account as a friend of the terminal user by using an SNS website open interface according to the SNS account information.
  • the reading module is configured to read the SNS account information in the following manner:
  • the SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder is read.
  • the SNS account information includes: an SNS type of the SNS account and the SNS account;
  • the friend adding module is configured to be invoked according to the SNS account information in the following manner
  • the SNS website open interface adds the SNS account as a friend of the end user:
  • the buddy adding module invokes the corresponding SNS website according to the SNS type of the SNS account to add the SNS account as a friend of the terminal user.
  • the SNS client agent further includes a receiving module connected to the buddy adding module, where: the buddy adding module is further configured to: invoke the corresponding SNS website open interface according to the SNS type of the SNS account to the SNS When the account is added as a friend of the terminal user, the login information of the terminal user logging in to the SNS website and the SNS account are sent to the SNS website, where the terminal user includes one or more;
  • the receiving module is configured to: receive the added friend result returned by the SNS website, and forward the added friend result to the friend adding module.
  • the adding the friend result includes: adding the failure information, where the adding the failure information includes adding the failed SNS account information;
  • the buddy adding module is further configured to: preset the number of failed re-additions, and after receiving the adding failure information returned by the SNS website, determine whether the preset failed re-adding times are reached, and if not, according to the Adding the SNS type of the SNS account in the failure information to the corresponding SNS website open interface, and re-adding the SNS account as a friend of the terminal user, otherwise, notifying the terminal user to add a friend fails; and/or
  • the buddy adding module is further configured to: prompt the user terminal to select to re-add the contact as a friend, and if the user terminal selects yes, invoke the corresponding SNS website open interface according to the SNS type of the SNS account in the adding failure information.
  • the SNS account is added as a friend of the terminal user, otherwise, the SNS account information that fails to be added is deleted.
  • a terminal comprising: any one of the social networking sites SNS client agent as described above.
  • a system for adding a social networking site SNS friend comprising: any one of the foregoing terminals and an SNS website, wherein the SNS website includes an open interface.
  • the method and system for adding an SNS friend, the SNS client agent, and the terminal provided by the present invention can quickly and conveniently add the SNS friend account saved in the contact to the corresponding SNS client, thereby avoiding heavy manual operations.
  • FIG. 1 is a flowchart of a method for adding an SNS friend in an embodiment
  • FIG. 2 is a system architecture diagram of adding an SNS friend in an embodiment
  • FIG. 3 is a structural diagram of an SNS client agent in an embodiment
  • Figure 4 is a flow chart of adding an SNS friend in an application example. Preferred embodiment of the invention
  • this embodiment provides a method for adding an SNS friend, including the following steps:
  • S101 The SNS client agent reads the SNS account information.
  • the SNS account information includes: an SNS type of the SNS account and an SNS account. Including: QQ, facebook, renren, etc.; SNS account, for example
  • the SNS client agent reads the SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder.
  • the SNS account information corresponding to the contact saved in the mobile terminal card holder can be read; each contact in the contact card can save multiple SNS accounts correspondingly, as a preferred method, the SNS type of the account includes one or more The same SNS type can save multiple SNS accounts.
  • each SNS account is represented by two fields in the contact's database:
  • SNS— TYPE Indicates the SNS type of the account, for example: QQ, facebook, renren, etc.
  • SNS— VALUE Indicates the actual value of the account, such as example@renren.com.
  • the storage location of the SNS account information in this embodiment is not limited.
  • the SNS client agent invokes the SNS website open interface according to the SNS account information, and adds the SNS account as a friend of the terminal user.
  • the SNS client agent invokes the corresponding SNS website open interface to add the SNS account of the contact as a friend of the terminal user according to the SNS type of the SNS account.
  • the SNS client agent sends the login information of the SNS website and the SNS account to the SNS website when the SNS client agent invokes the corresponding SNS website open interface, and completes the friend addition after login.
  • the number of terminal users in the embodiment may be multiple, so that the SNS client agent can simultaneously add the SNS accounts of multiple terminal users as friends.
  • the SNS type of the current SNS account is qq, and multiple qq accounts
  • the SNS client agent invokes the corresponding SNS website open interface
  • the local user logs in to the login information of multiple accounts of the qq, that is, the user name and The password and the SNS account to be added by the end user are sent to the qq website, and the friend is added after login.
  • the SNS client agent invokes the corresponding SNS website open interface, it also receives the added friend result returned by the SNS website, and performs corresponding processing according to the added friend result.
  • the adding friend results include: the addition succeeds, the addition fails, and the account already exists.
  • the adding success information includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, etc.
  • the SNS client agent may add the above success information. Notify the user terminal.
  • the adding failure information includes adding the failed contact, the SNS account number and the account type of the contact, and the number of the added failed account, and the like; Also includes:
  • the SNS client agent presets the number of failed re-additions, and after receiving the addition failure information returned by the SNS website, determines whether the preset failure re-addition number is reached, and if not, the data is added according to the
  • the SNS type of the SNS account in the failure information invokes the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise the terminal user is notified to fail to add the friend; and/or
  • the SNS client agent prompts the user terminal to re-add the contact as a friend. If the user terminal selects yes, the SNS account is re-introduced according to the SNS type of the SNS account in the adding failure information. Add as a friend of the end user, otherwise, delete the SNS account information that failed to be added.
  • the embodiment also provides a system for adding an SNS friend.
  • the system includes a terminal and an SNS website, where the SNS website has an open interface, and the terminal includes an SNS client agent, and the SNS
  • the structure of the client agent is as shown in FIG. 3, and includes a reading module and a friend adding module, where: the reading module is configured to: read SNS account information;
  • the reading module can read the SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder.
  • the SNS account information corresponding to the contact saved in the mobile terminal card holder can be read; the friend adding module is configured to: add the SNS account as the friend of the terminal user by calling the SNS website open interface according to the SNS account information.
  • the SNS account information corresponding to the contact saved in the mobile phone card holder of the mobile terminal includes: an SNS type of the SNS account and an SNS account.
  • the SNS type of the account includes one or more types. The same SNS type can save multiple SNS accounts.
  • the buddy adding module is configured to: add the SNS account of the contact as a friend of the terminal user by calling the corresponding SNS website open interface according to the SNS type of the SNS account.
  • the buddy adding module when calling the corresponding SNS website open interface, also sends the login information of the terminal user to the SNS website and the SNS account to the SNS website, and completes the friend's adding power port after login.
  • the terminal user may be multiple in this embodiment, so that the friend adding module can simultaneously add the SNS accounts of multiple terminal users as friends.
  • the buddy adding module receives the added friend result returned by the SNS website when the corresponding SNS website open interface is invoked, and the added friend result includes: adding success, adding failure, and the account existed. Therefore, the SNS client agent further includes a receiving module connected to the friend adding module, wherein:
  • the receiving module is configured to: receive an added friend result returned by the SNS website, and forward the added friend result to the friend adding module;
  • the friend adding module is further configured to: perform corresponding processing according to the adding friend result.
  • the receiving module receives the adding success information returned by the SNS website, where the adding success information includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, etc., the friend adds
  • the module may notify the user terminal of the above-mentioned addition success information.
  • the receiving module receives the added friend result returned by the SNS website as the adding failure information, where the adding failure information includes adding the failed contact, the SNS account number and the account type of the contact, and the number of accounts that failed to be added, and the like.
  • Interest rate includes adding the failed contact, the SNS account number and the account type of the contact, and the number of accounts that failed to be added, and the like.
  • the buddy adding module fails to re-add the number of times, and after receiving the adding failure information returned by the SNS website, determining whether the preset failure re-adding number is reached, and if not, adding the failure information according to the adding
  • the SNS type of the SNS account calls the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise notify the terminal user. Adding a friend failed; and/or
  • the buddy adding module prompts the user terminal to select to re-add the contact as a friend. If the user terminal selects yes, the SNS website is opened according to the SNS type of the SNS account in the adding failure information, and the SNS account is re-added. For the end user's friends.
  • the terminal is used as an example to save the SNS account information corresponding to the contact in the terminal card holder.
  • the SNS client agent in this embodiment adds the contact as the corresponding SNS.
  • the specific process of the friend in the client includes the following steps:
  • S201 Start an SNS client agent
  • S202 The SNS client agent reads the SNS account corresponding to all the contacts and the SNS type of the SNS account from the contact card;
  • S203 The SNS client agent classifies the SNS accounts corresponding to all the contacts according to the SNS type, and invokes the corresponding SNS website open interface according to the SNS type.
  • S204 Query whether the SNS account already exists, if yes, go to step S206; otherwise, go to step S205;
  • S205 Add the SNS account of the contact as a friend of the terminal user according to the SNS type;
  • S206 The SNS client agent records the result of the friend addition, and the results include: the addition succeeds, the addition fails, and the account already exists;
  • the adding success information further includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, and the like; adding the failure information further includes adding the failed contact, the SNS account and the account of the contact. Type and the number of accounts that failed to be added, etc.;
  • the account existing information also includes the existing account and account type, the contact corresponding to the existing account, and so on.
  • step S207 determining whether the SNS account of all contacts has been added, if yes, go to step S208; otherwise, go to step S203;
  • S208 The SNS client agent collects statistics on the added result, and displays the statistical result for the user, and prompts the user whether to add the added SNS account.
  • the statistical result can be the number of successful additions, the number of failed additions or the contact that failed to be added, the contact corresponding to the existing account, and so on.
  • S209 If the terminal user selects yes, the process goes to step S203, otherwise, the execution use case ends. At the same time, the SNS client agent allows the user to edit the SNS account that failed to be added, and then proceeds to step S203 to add the friend.
  • the SNS client agent also allows the user to delete the SNS account that failed to be added. After editing or deleting the failed SNS account, the SNS client agent will update the corresponding contact in the contact card. SNS account information.
  • the SNS account information corresponding to the contact saved in the contact card includes: SNS type of the SNS account and The SNS account
  • the SNS client agent can call the corresponding SNS website open interface according to the SNS type to add all SNS accounts of all contacts to the corresponding SNS client, even if there are many contacts in the contacts, and each contact If there are multiple SNS friend accounts, the SNS friend account saved in the contact can be added to the corresponding SNS client conveniently and quickly, avoiding heavy manual operations.
  • the method and system for adding an SNS friend, the SNS client agent, and the terminal provided by the present invention can quickly and conveniently add the SNS friend account saved in the contact to the corresponding SNS client, thereby avoiding heavy manual operations. Therefore, the present invention has strong industrial applicability.

Abstract

A method, a social network service (SNS) client agent, a terminal and a system for adding an SNS friend. The method comprises: an SNS client agent reading SNS account information saved in a terminal, calling an SNS website open interface according to the SNS account information, and adding an SNS account as a friend of a terminal user. The SNS client agent comprises a reading module and a friend adding module; the reading module is configured to read SNS account information, and the friend adding module is configured to call an SNS website open interface to add an SNS account as a friend of a terminal user according to the SNS account information. The terminal comprises the SNS client agent; and the system comprises the terminal and an SNS website. By means of the method, the system, the SNS client agent and the terminal for adding an SNS friend, the SNS friend account saved in contacts can be conveniently and quickly added into a corresponding SNS client, and heavy manual operation is avoided.

Description

一种添加 SNS好友的方法、 客户端代理、 终端及系统  Method for adding SNS friends, client agent, terminal and system
技术领域 Technical field
本发明涉及计算机网络通讯领域, 具体涉及一种添加社交网站(SNS, Social Network Site )好友的方法、 SNS客户端代理、 终端及系统。 背景技术  The invention relates to the field of computer network communication, and particularly relates to a method for adding a social network site (SNS) friend, an SNS client agent, a terminal and a system. Background technique
近几年移动终端日益智能化, 使得在移动终端上安装、 删除软件就像在 PC上操作一样简单。 另一方面, SNS 飞速发展, 已经成为人们生活中必不 可少的一部分。 随着 3G网络的不断成熟, 迅速将移动终端、 SNS融合在一 起, 几乎所有的 SNS网站都推出了可在移动终端上运行的客户端, 并且越来 越多的用户安装、 使用 SNS客户端。  In recent years, mobile terminals have become increasingly intelligent, making it easy to install and remove software on a mobile terminal as if it were operating on a PC. On the other hand, the rapid development of SNS has become an indispensable part of people's lives. As 3G networks continue to mature, mobile terminals and SNSs are rapidly integrated. Almost all SNS websites have launched clients that can run on mobile terminals, and more and more users install and use SNS clients.
通常, 在不便添加 SNS好友时(例如在路上、 开会、 没有电脑时)用户 会在名片夹对应的联系人下保存该联系人的 SNS账号信息 (以下简称 SNS 好友账号)以便日后添加,久而久之就会在名片夹中保存很多 SNS好友账号。 随之而来的问题就是如果想把这些 SNS好友账号加到对应的 SNS客户端中, 就必须根据账号类型启动不同的 SNS客户端, 然后手动输入 SNS好友账号 完成好友添加。 如果名片夹中有很多联系人, 并且每个联系人中有多个 SNS 好友账号, 那么添加的过程将会非常繁瑣。 发明内容  Usually, when it is inconvenient to add an SNS friend (for example, on the road, in a meeting, without a computer), the user will save the SNS account information of the contact (hereinafter referred to as the SNS friend account) under the contact corresponding to the contact card for later addition, and then the user will add it over time. Many SNS friend accounts will be saved in the contacts. The ensuing problem is that if you want to add these SNS friend accounts to the corresponding SNS client, you must start different SNS clients according to the account type, and then manually enter the SNS friend account to complete the friend addition. If there are many contacts in the contacts and there are multiple SNS friends in each contact, the process of adding will be very cumbersome. Summary of the invention
本发明需要解决的技术问题是提供一种添加 SNS 好友的方法及系统、 SNS客户端代理及终端,能够方便快捷地将保存在联系人中的 SNS好友账号 添加到对应的 SNS客户端中, 避免了繁重的手工操作。  The technical problem to be solved by the present invention is to provide a method and a system for adding an SNS friend, an SNS client agent, and a terminal, which can quickly and conveniently add an SNS friend account saved in a contact to a corresponding SNS client, thereby avoiding Heavy manual operations.
为了解决上述技术问题, 本发明釆用如下技术方案:  In order to solve the above technical problems, the present invention uses the following technical solutions:
一种添加社交网站 SNS好友的方法, 包括:  A method of adding a social networking site SNS friend, including:
SNS客户端代理读取终端中保存的 SNS账号信息;  The SNS client agent reads the SNS account information saved in the terminal;
所述 SNS客户端代理根据所述 SNS账号信息调用 SNS网站开放接口, 将 SNS账号添加为终端用户的好友。 The SNS client agent invokes an SNS website open interface according to the SNS account information. Add the SNS account as a friend of the end user.
其中, SNS客户端代理读取终端中保存的 SNS账号信息的步骤包括: 所述 SNS客户端代理读取移动终端名片夹、移动终端记事本、移动终端 短信文件夹及移动终端彩信文件夹中任一或其组合中保存的所述 SNS 账号 信息。  The step of the SNS client agent reading the SNS account information saved in the terminal includes: the SNS client agent reading the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal MMS folder. The SNS account information saved in one or a combination thereof.
其中, 所述 SNS账号信息包括: 所述 SNS账号和所述 SNS账号的 SNS 类型;  The SNS account information includes: an SNS type of the SNS account and the SNS account;
所述 SNS客户端代理根据所述 SNS账号信息调用 SNS网站开放接口, 将 SNS账号添加为终端用户的好友的步骤包括:  The step of the SNS client agent invoking the SNS website open interface according to the SNS account information, and adding the SNS account as the friend of the terminal user includes:
所述 SNS客户端代理根据所述 SNS账号的所述 SNS类型调用相应的 The SNS client agent invokes a corresponding one according to the SNS type of the SNS account.
SNS网站开放接口将所述 SNS账号添加为终端用户的好友。 The SNS website open interface adds the SNS account as a friend of the end user.
所述方法还包括:  The method further includes:
所述 SNS客户端代理根据所述 SNS账号的 SNS类型调用相应的 SNS网 站开放接口将所述 SNS账号添加为终端用户的好友时, 所述 SNS客户端代 理将所述终端用户登录所述 SNS网站的登录信息以及所述 SNS账号发送至 所述 SNS网站, 并接收所述 SNS网站返回的添加好友结果; 其中, 所述终 端用户包括一个或多个。  When the SNS client agent invokes the corresponding SNS website open interface to add the SNS account as a friend of the terminal user according to the SNS type of the SNS account, the SNS client agent logs the terminal user to the SNS website. The login information and the SNS account are sent to the SNS website, and the added friend result returned by the SNS website is received; wherein the terminal user includes one or more.
其中, 所述添加好友结果包括: 添加失败信息, 所述添加失败信息包括 添加失败的 SNS账号信息;  The adding the friend result includes: adding the failure information, where the adding the failure information includes adding the failed SNS account information;
所述方法还包括: 所述 SNS客户端代理预设失败重新添加次数, 在接收 到所述 SNS网站返回的所述添加失败信息后,判断是否达到所述预设失败重 新添加次数, 如果没有达到, 则根据所述添加失败信息中所述 SNS 账号的 SNS类型调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用 户的好友, 否则通知终端用户添加好友失败; 和 /或  The method further includes: the SNS client agent presets a failure to re-add the number of times, and after receiving the adding failure information returned by the SNS website, determining whether the preset failure re-addition number is reached, if not And, according to the SNS type of the SNS account in the adding failure information, calling the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise, notifying the terminal user to add a friend fails; and/or
所述 SNS客户端代理提示用户终端是否选择重新添加该联系人为好友, 若用户终端选择是, 则根据所述添加失败信息中所述 SNS账号的 SNS类型 调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友, 否则, 删除所述添加失败的 SNS账号信息。 一种社交网站 SNS客户端代理, 包括读取模块和好友添加模块, 其中: 所述读取模块设置成: 读取 SNS账号信息; The SNS client agent prompts the user terminal to select to re-add the contact as a friend, and if the user terminal selects yes, the corresponding SNS website open interface is invoked according to the SNS type of the SNS account in the adding failure information. The SNS account is added as a friend of the terminal user. Otherwise, the SNS account information that failed to be added is deleted. A social network SNS client agent, comprising a reading module and a friend adding module, wherein: the reading module is configured to: read SNS account information;
所述好友添加模块设置成: 根据所述 SNS账号信息调用 SNS网站开放 接口将 SNS账号添加为终端用户的好友。  The buddy adding module is configured to: add an SNS account as a friend of the terminal user by using an SNS website open interface according to the SNS account information.
其中, 所述读取模块设置成按照以下方式读取 SNS账号信息:  The reading module is configured to read the SNS account information in the following manner:
读取移动终端名片夹、 移动终端记事本、 移动终端短信文件夹及移动终 端彩信文件夹中任一或其组合中保存的所述 SNS账号信息。  The SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder is read.
其中, 所述 SNS账号信息包括: 所述 SNS账号和所述 SNS账号的 SNS 类型;  The SNS account information includes: an SNS type of the SNS account and the SNS account;
所述好友添加模块设置成按照以下方式根据所述 SNS 账号信息调用 The friend adding module is configured to be invoked according to the SNS account information in the following manner
SNS网站开放接口将 SNS账号添加为终端用户的好友: The SNS website open interface adds the SNS account as a friend of the end user:
所述好友添加模块根据所述 SNS账号的 SNS类型调用相应的 SNS网站 开放接口将所述 SNS账号添加为终端用户的好友。  The buddy adding module invokes the corresponding SNS website according to the SNS type of the SNS account to add the SNS account as a friend of the terminal user.
所述 SNS客户端代理还包括与所述好友添加模块相连的接收模块,其中: 所述好友添加模块还设置成: 在根据所述 SNS账号的 SNS类型调用相 应的 SNS网站开放接口将所述 SNS账号添加为终端用户的好友时, 将所述 终端用户登录所述 SNS网站的登录信息以及所述 SNS账号发送至所述 SNS 网站, 其中, 所述终端用户包括一个或多个;  The SNS client agent further includes a receiving module connected to the buddy adding module, where: the buddy adding module is further configured to: invoke the corresponding SNS website open interface according to the SNS type of the SNS account to the SNS When the account is added as a friend of the terminal user, the login information of the terminal user logging in to the SNS website and the SNS account are sent to the SNS website, where the terminal user includes one or more;
所述接收模块设置成: 接收所述 SNS网站返回的添加好友结果, 并将所 述添加好友结果转发至所述好友添加模块。  The receiving module is configured to: receive the added friend result returned by the SNS website, and forward the added friend result to the friend adding module.
其中, 所述添加好友结果包括: 添加失败信息, 所述添加失败信息包括 添加失败的 SNS账号信息;  The adding the friend result includes: adding the failure information, where the adding the failure information includes adding the failed SNS account information;
所述好友添加模块还设置成:预设失败重新添加次数,在接收到所述 SNS 网站返回的添加失败信息后, 判断是否达到所述预设失败重新添加次数, 如 果没有达到, 则根据所述添加失败信息中所述 SNS账号的 SNS类型调用相 应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友, 否则 通知终端用户添加好友失败; 和 /或 所述好友添加模块还设置成: 提示用户终端是否选择重新添加该联系人 为好友, 若用户终端选择是, 则根据所述添加失败信息中所述 SNS 账号的 SNS类型调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用 户的好友, 否则, 删除所述添加失败的 SNS账号信息。 The buddy adding module is further configured to: preset the number of failed re-additions, and after receiving the adding failure information returned by the SNS website, determine whether the preset failed re-adding times are reached, and if not, according to the Adding the SNS type of the SNS account in the failure information to the corresponding SNS website open interface, and re-adding the SNS account as a friend of the terminal user, otherwise, notifying the terminal user to add a friend fails; and/or The buddy adding module is further configured to: prompt the user terminal to select to re-add the contact as a friend, and if the user terminal selects yes, invoke the corresponding SNS website open interface according to the SNS type of the SNS account in the adding failure information. The SNS account is added as a friend of the terminal user, otherwise, the SNS account information that fails to be added is deleted.
一种终端, 包括: 如上所述的任意一种社交网站 SNS客户端代理。 一种添加社交网站 SNS好友的系统, 包括: 如上所述的任意一种终端以 及 SNS网站, 其中, 所述 SNS网站包括开放接口。  A terminal, comprising: any one of the social networking sites SNS client agent as described above. A system for adding a social networking site SNS friend, comprising: any one of the foregoing terminals and an SNS website, wherein the SNS website includes an open interface.
本发明提供的添加 SNS好友的方法及系统、 SNS客户端代理及终端, 能 够方便快捷地将保存在联系人中的 SNS好友账号添加到对应的 SNS客户端 中, 避免了繁重的手工操作。 附图概述 The method and system for adding an SNS friend, the SNS client agent, and the terminal provided by the present invention can quickly and conveniently add the SNS friend account saved in the contact to the corresponding SNS client, thereby avoiding heavy manual operations. BRIEF abstract
图 1 是实施例中添加 SNS好友的方法流程图;  FIG. 1 is a flowchart of a method for adding an SNS friend in an embodiment;
图 2是实施例中添加 SNS好友的系统架构图;  2 is a system architecture diagram of adding an SNS friend in an embodiment;
图 3是实施例中 SNS客户端代理结构图;  3 is a structural diagram of an SNS client agent in an embodiment;
图 4是一个应用示例中添加 SNS好友的流程图。 本发明的较佳实施方式  Figure 4 is a flow chart of adding an SNS friend in an application example. Preferred embodiment of the invention
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 这些组合均在本发明的 保护范围内。  In order to make the objects, the technical solutions and the advantages of the present invention more clearly, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments of the present application may be arbitrarily combined with each other. These combinations are all within the scope of the invention.
实施例:  Example:
如图 1所示,本实施例提供了一种添加 SNS好友的方法,包括以下步骤: As shown in FIG. 1 , this embodiment provides a method for adding an SNS friend, including the following steps:
S101 : SNS客户端代理读取 SNS账号信息; S101: The SNS client agent reads the SNS account information.
其中, 所述 SNS账号信息包括: SNS账号的 SNS类型和 SNS账号。 括: QQ、 facebook, renren等; SNS 账号, 例如为
Figure imgf000007_0001
The SNS account information includes: an SNS type of the SNS account and an SNS account. Including: QQ, facebook, renren, etc.; SNS account, for example
Figure imgf000007_0001
其中, SNS客户端代理读取移动终端名片夹、 移动终端记事本、 移动终 端短信文件夹及移动终端彩信文件夹中任一或其组合中保存的 SNS 账号信 息。  The SNS client agent reads the SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder.
例如, 可以读取移动终端名片夹中保存的联系人对应的 SNS账号信息; 名片夹中每个联系人可以对应保存多个 SNS账号,作为一种优选的方式, 账号的 SNS类型包括一个或多个; 其中, 同一 SNS类型可以对应保存多个 SNS账号。  For example, the SNS account information corresponding to the contact saved in the mobile terminal card holder can be read; each contact in the contact card can save multiple SNS accounts correspondingly, as a preferred method, the SNS type of the account includes one or more The same SNS type can save multiple SNS accounts.
例如, 每个 SNS账号在联系人的数据库中由两个字段表示:  For example, each SNS account is represented by two fields in the contact's database:
SNS— TYPE: 表示账号的 SNS类型, 例如: QQ、 facebook, renren等。  SNS— TYPE: Indicates the SNS type of the account, for example: QQ, facebook, renren, etc.
SNS— VALUE: 表示账号的实际值, 例如 example@renren.com等。  SNS— VALUE: Indicates the actual value of the account, such as example@renren.com.
当然也可以保存在终端的其他存储单元中,本实施例对于 SNS账号信息 的存储位置并不限制。  Of course, it can also be stored in other storage units of the terminal. The storage location of the SNS account information in this embodiment is not limited.
S102: SNS客户端代理根据所述 SNS账号信息调用 SNS网站开放接口 将 SNS账号添加为终端用户的好友。  S102: The SNS client agent invokes the SNS website open interface according to the SNS account information, and adds the SNS account as a friend of the terminal user.
在本步骤中, 所述 SNS客户端代理根据 SNS账号的 SNS类型调用相应 的 SNS网站开放接口将所述联系人的 SNS账号添加为终端用户的好友。  In this step, the SNS client agent invokes the corresponding SNS website open interface to add the SNS account of the contact as a friend of the terminal user according to the SNS type of the SNS account.
其中, 所述 SNS客户端代理在调用相应的 SNS网站开放接口时, 还会 将所述终端用户登录所述 SNS网站的登录信息、 所述 SNS账号发送至 SNS 网站, 登录后完成好友添加。  The SNS client agent sends the login information of the SNS website and the SNS account to the SNS website when the SNS client agent invokes the corresponding SNS website open interface, and completes the friend addition after login.
另外, 作为一种可选的方式, 本实施例中所述终端用户可以是多个, 这 样 SNS客户端代理可以同时将多个终端用户的 SNS账号添加为好友。  In addition, as an optional manner, the number of terminal users in the embodiment may be multiple, so that the SNS client agent can simultaneously add the SNS accounts of multiple terminal users as friends.
例如, 当前 SNS账户的 SNS类型为 qq, 并且又多个 qq账户, SNS客户 端代理在调用相应的 SNS网站开放接口时, 会将本地用户登录 qq的多个账 户的登录信息, 即用户名及密码以及终端用户要添加的 SNS账号发送至 qq 网站, 登录后完成好友添加。 另外, SNS客户端代理在调用相应的 SNS网站开放接口时,还会接收到 所述 SNS网站返回的添加好友结果, 根据所述添加好友结果进行相应处理。 For example, the SNS type of the current SNS account is qq, and multiple qq accounts, when the SNS client agent invokes the corresponding SNS website open interface, the local user logs in to the login information of multiple accounts of the qq, that is, the user name and The password and the SNS account to be added by the end user are sent to the qq website, and the friend is added after login. In addition, when the SNS client agent invokes the corresponding SNS website open interface, it also receives the added friend result returned by the SNS website, and performs corresponding processing according to the added friend result.
所述添加好友结果包括: 添加成功、 添加失败、 账号已存在。  The adding friend results include: the addition succeeds, the addition fails, and the account already exists.
例如, 如果 SNS网站返回添加成功信息, 该添加成功信息包括添加成功 的联系人、 该联系人的 SNS账号及账号类型以及添加成功的账号数量等等, 则 SNS客户端代理可以将上述添加成功信息通知用户终端。  For example, if the SNS website returns the adding success information, the adding success information includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, etc., the SNS client agent may add the above success information. Notify the user terminal.
又如, 如果 SNS网站返回的添加好友结果为添加失败信息, 所述添加失 败信息包括添加失败的联系人、该联系人的 SNS账号及账号类型以及添加失 败的账号数量等等息; 所述方法还包括:  For another example, if the added friend result returned by the SNS website is the adding failure information, the adding failure information includes adding the failed contact, the SNS account number and the account type of the contact, and the number of the added failed account, and the like; Also includes:
所述 SNS客户端代理预设失败重新添加次数, 在接收到所述 SNS网站 返回的添加失败信息后, 判断是否达到所述预设失败重新添加次数, 如果没 有达到, 则才艮据所述添加失败信息中 SNS账号的 SNS类型调用相应的 SNS 网站开放接口重新将所述 SNS账号添加为终端用户的好友,否则通知终端用 户添加好友失败; 和 /或  The SNS client agent presets the number of failed re-additions, and after receiving the addition failure information returned by the SNS website, determines whether the preset failure re-addition number is reached, and if not, the data is added according to the The SNS type of the SNS account in the failure information invokes the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise the terminal user is notified to fail to add the friend; and/or
所述 SNS客户端代理提示用户终端是否选择重新添加该联系人为好友, 若用户终端选择是, 则根据所述添加失败信息中 SNS账号的 SNS类型调用 相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友, 否 则, 删除所述添加失败的 SNS账号信息。  The SNS client agent prompts the user terminal to re-add the contact as a friend. If the user terminal selects yes, the SNS account is re-introduced according to the SNS type of the SNS account in the adding failure information. Add as a friend of the end user, otherwise, delete the SNS account information that failed to be added.
本实施例还提供了一种添加 SNS好友的系统, 如图 2所示, 该系统包括 终端及 SNS网站, 其中, 所述 SNS网站具备开放接口; 所述终端包括 SNS 客户端代理, 所述 SNS客户端代理的结构如图 3所述, 包括读取模块和好友 添加模块, 其中: 所述读取模块设置成: 读取 SNS账号信息;  The embodiment also provides a system for adding an SNS friend. As shown in FIG. 2, the system includes a terminal and an SNS website, where the SNS website has an open interface, and the terminal includes an SNS client agent, and the SNS The structure of the client agent is as shown in FIG. 3, and includes a reading module and a friend adding module, where: the reading module is configured to: read SNS account information;
所述读取模块可以读取移动终端名片夹、 移动终端记事本、 移动终端短 信文件夹及移动终端彩信文件夹中任一或其组合中保存的 SNS账号信息。  The reading module can read the SNS account information saved in any one or a combination of the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and the mobile terminal multimedia message folder.
例如, 可以读取移动终端名片夹中保存的联系人对应的 SNS账号信息; 所述好友添加模块设置成: 根据所述 SNS账号信息调用 SNS网站开放 接口将 SNS账号添加为终端用户的好友。 其中, 所述移动终端名片夹中保存的联系人对应的 SNS账号信息包括: SNS账号的 SNS类型和 SNS账号。 所述账号的 SNS类型包括一个或多个; 其中, 同一 SNS类型可以对应保存多个 SNS账号。 For example, the SNS account information corresponding to the contact saved in the mobile terminal card holder can be read; the friend adding module is configured to: add the SNS account as the friend of the terminal user by calling the SNS website open interface according to the SNS account information. The SNS account information corresponding to the contact saved in the mobile phone card holder of the mobile terminal includes: an SNS type of the SNS account and an SNS account. The SNS type of the account includes one or more types. The same SNS type can save multiple SNS accounts.
所述好友添加模块设置成: 根据 SNS账号的 SNS类型调用相应的 SNS 网站开放接口将所述联系人的 SNS账号添加为终端用户的好友。  The buddy adding module is configured to: add the SNS account of the contact as a friend of the terminal user by calling the corresponding SNS website open interface according to the SNS type of the SNS account.
其中, 所述好友添加模块在调用相应的 SNS网站开放接口时,还会将终 端用户登录所述 SNS网站的登录信息、 所述 SNS账号发送至 SNS网站, 登 录后完成好友添力口。  The buddy adding module, when calling the corresponding SNS website open interface, also sends the login information of the terminal user to the SNS website and the SNS account to the SNS website, and completes the friend's adding power port after login.
其中, 本实施例中所述终端用户可以是多个, 这样好友添加模块就可以 同时将多个终端用户的 SNS账号添加为好友。  The terminal user may be multiple in this embodiment, so that the friend adding module can simultaneously add the SNS accounts of multiple terminal users as friends.
此外, 本实施例中, 所述好友添加模块在调用相应的 SNS网站开放接口 时,还会接收到所述 SNS网站返回的添加好友结果,所述添加好友结果包括: 添加成功、 添加失败、 账号已存在。 因此, SNS客户端代理还包括与所述好 友添加模块相连的接收模块, 其中:  In addition, in this embodiment, the buddy adding module receives the added friend result returned by the SNS website when the corresponding SNS website open interface is invoked, and the added friend result includes: adding success, adding failure, and the account existed. Therefore, the SNS client agent further includes a receiving module connected to the friend adding module, wherein:
所述接收模块设置成: 接收所述 SNS网站返回的添加好友结果, 并将所 述添加好友结果转发至所述好友添加模块;  The receiving module is configured to: receive an added friend result returned by the SNS website, and forward the added friend result to the friend adding module;
所述好友添加模块还设置成: 根据所述添加好友结果进行相应处理。 例如,接收模块接收到所述 SNS网站返回的添加成功信息, 该添加成功 信息包括添加成功的联系人、该联系人的 SNS账号及账号类型以及添加成功 的账号数量等等, 则所述好友添加模块可以将上述添加成功信息通知用户终 端。  The friend adding module is further configured to: perform corresponding processing according to the adding friend result. For example, the receiving module receives the adding success information returned by the SNS website, where the adding success information includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, etc., the friend adds The module may notify the user terminal of the above-mentioned addition success information.
又如,接收模块接收到所述 SNS网站返回的添加好友结果为添加失败信 息, 所述添加失败信息包括添加失败的联系人、该联系人的 SNS账号及账号 类型以及添加失败的账号数量等等息;  For another example, the receiving module receives the added friend result returned by the SNS website as the adding failure information, where the adding failure information includes adding the failed contact, the SNS account number and the account type of the contact, and the number of accounts that failed to be added, and the like. Interest rate
则所述好友添加模块预设失败重新添加次数,在接收到所述 SNS网站返 回的添加失败信息后, 判断是否达到所述预设失败重新添加次数, 如果没有 达到, 则根据所述添加失败信息中 SNS账号的 SNS类型调用相应的 SNS网 站开放接口重新将所述 SNS账号添加为终端用户的好友,否则通知终端用户 添加好友失败; 和 /或 And the buddy adding module fails to re-add the number of times, and after receiving the adding failure information returned by the SNS website, determining whether the preset failure re-adding number is reached, and if not, adding the failure information according to the adding The SNS type of the SNS account calls the corresponding SNS website open interface to re-add the SNS account as a friend of the terminal user, otherwise notify the terminal user. Adding a friend failed; and/or
所述好友添加模块提示用户终端是否选择重新添加该联系人为好友, 若 用户终端选择是, 则根据所述添加失败信息中 SNS账号的 SNS类型调用相 应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友。  The buddy adding module prompts the user terminal to select to re-add the contact as a friend. If the user terminal selects yes, the SNS website is opened according to the SNS type of the SNS account in the adding failure information, and the SNS account is re-added. For the end user's friends.
在一个应用示例中 ,以终端为例 ,在终端名片夹中保存联系人对应的 SNS 账号信息, 如图 4所示, 详细描述了本实施例中的 SNS客户端代理将联系人 添加为相应 SNS客户端中的好友的具体流程, 包括以下步骤:  In an application example, the terminal is used as an example to save the SNS account information corresponding to the contact in the terminal card holder. As shown in FIG. 4, the SNS client agent in this embodiment adds the contact as the corresponding SNS. The specific process of the friend in the client includes the following steps:
S201 : 启动 SNS客户端代理;  S201: Start an SNS client agent;
S202: SNS客户端代理从名片夹中读入所有联系人对应的 SNS账号及 SNS账号的 SNS类型;  S202: The SNS client agent reads the SNS account corresponding to all the contacts and the SNS type of the SNS account from the contact card;
S203: SNS客户端代理根据 SNS类型对所有联系人对应的 SNS账号分 类, 根据 SNS类型调用对应的 SNS网站开放接口;  S203: The SNS client agent classifies the SNS accounts corresponding to all the contacts according to the SNS type, and invokes the corresponding SNS website open interface according to the SNS type.
S204: 查询 SNS账号是否已存在, 如果已存在, 转至步骤 S206; 否则, 执行步骤 S205;  S204: Query whether the SNS account already exists, if yes, go to step S206; otherwise, go to step S205;
S205: 按照 SNS类型将联系人的 SNS账号添加为终端用户的好友; S205: Add the SNS account of the contact as a friend of the terminal user according to the SNS type;
S206: SNS客户端代理记录好友添加结果, 结果包括: 添加成功、 添加 失败和账号已存在; S206: The SNS client agent records the result of the friend addition, and the results include: the addition succeeds, the addition fails, and the account already exists;
其中, 添加成功信息还包括添加成功的联系人、该联系人的 SNS账号及 账号类型以及添加成功的账号数量等等; 添加失败信息还包括添加失败的联 系人、 该联系人的 SNS账号及账号类型以及添加失败的账号数量等等; 账号 已存在信息还包括已存在的账号及账号类型、已存在账号对应的联系人等等。  The adding success information further includes adding a successful contact, the SNS account number and the account type of the contact, and the number of successfully added accounts, and the like; adding the failure information further includes adding the failed contact, the SNS account and the account of the contact. Type and the number of accounts that failed to be added, etc.; The account existing information also includes the existing account and account type, the contact corresponding to the existing account, and so on.
S207: 判断是否所有联系人的 SNS账号已添加完毕, 如果是, 转至步骤 S208; 否则转至步骤 S203;  S207: determining whether the SNS account of all contacts has been added, if yes, go to step S208; otherwise, go to step S203;
S208: SNS客户端代理对添加结果进行统计,并将统计结果为用户显示, 并提示用户是否对添加失败的 SNS账号重新添加;  S208: The SNS client agent collects statistics on the added result, and displays the statistical result for the user, and prompts the user whether to add the added SNS account.
例如, 统计结果可以是添加成功的数量、 添加失败的数量或添加失败的 联系人以及已存在账号对应的联系人等等。 S209: 若终端用户选择是, 则转至步骤 S203 , 否则, 执行用例结束。 同时, SNS客户端代理允许用户先对添加失败的 SNS账号进行编辑后再 转至步骤 S203进行好友添加。 For example, the statistical result can be the number of successful additions, the number of failed additions or the contact that failed to be added, the contact corresponding to the existing account, and so on. S209: If the terminal user selects yes, the process goes to step S203, otherwise, the execution use case ends. At the same time, the SNS client agent allows the user to edit the SNS account that failed to be added, and then proceeds to step S203 to add the friend.
在本步骤中, 若终端用户选择不重新添加好友, SNS客户端代理还允许 用户删除添加失败的 SNS账号, 编辑或删除失败的 SNS账号后, SNS客户 端代理会同步更新名片夹内对应联系人的 SNS账号信息。  In this step, if the terminal user chooses not to re-add the friend, the SNS client agent also allows the user to delete the SNS account that failed to be added. After editing or deleting the failed SNS account, the SNS client agent will update the corresponding contact in the contact card. SNS account information.
从上述实施例可以看出,上述实施例中提供的添加 SNS好友的方法及系 统、 SNS客户端代理及终端,在名片夹中保存的联系人对应的 SNS账号信息 包括: SNS账号的 SNS类型和 SNS账号, SNS客户端代理可以根据 SNS类 型调用相应的 SNS网站开放接口将所有联系人的所有 SNS账号添加到相应 的 SNS 客户端中, 即使名片夹中有很多联系人, 并且每个联系人中有多个 SNS好友账号,也能方便快捷地将保存在联系人中的 SNS好友账号添加到对 应的 SNS客户端中, 避免了繁重的手工操作。  It can be seen from the foregoing embodiment that the method and system for adding an SNS friend, the SNS client agent, and the terminal provided in the foregoing embodiment, the SNS account information corresponding to the contact saved in the contact card includes: SNS type of the SNS account and The SNS account, the SNS client agent can call the corresponding SNS website open interface according to the SNS type to add all SNS accounts of all contacts to the corresponding SNS client, even if there are many contacts in the contacts, and each contact If there are multiple SNS friend accounts, the SNS friend account saved in the contact can be added to the corresponding SNS client conveniently and quickly, avoiding heavy manual operations.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并非用于限定本发明的保护范 围。 根据本发明的发明内容, 还可有其他多种实施例, 在不背离本发明精神 改变和变形, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. In view of the present invention, various other modifications, equivalents, improvements, etc., should be made without departing from the spirit and scope of the invention. It is included in the scope of protection of the present invention.
工业实用性 Industrial applicability
本发明提供的添加 SNS好友的方法及系统、 SNS客户端代理及终端, 能 够方便快捷地将保存在联系人中的 SNS好友账号添加到对应的 SNS客户端 中, 避免了繁重的手工操作。 因此本发明具有很强的工业实用性。  The method and system for adding an SNS friend, the SNS client agent, and the terminal provided by the present invention can quickly and conveniently add the SNS friend account saved in the contact to the corresponding SNS client, thereby avoiding heavy manual operations. Therefore, the present invention has strong industrial applicability.

Claims

权 利 要 求 书 Claim
1、 一种添加社交网站 SNS好友的方法, 包括:  1. A method of adding a social networking site SNS friend, including:
SNS客户端代理读取终端中保存的 SNS账号信息; 所述 SNS客户端代理根据所述 SNS账号信息调用 SNS网站开放接口, 将 SNS账号添加为终端用户的好友。 The SNS client agent reads the SNS account information saved in the terminal; the SNS client agent invokes the SNS website open interface according to the SNS account information, and adds the SNS account as a friend of the terminal user.
2、 如权利要求 1 所述的方法, 其中, SNS客户端代理读取终端中保存 的 SNS账号信息的步骤包括: 所述 SNS客户端代理读取移动终端名片夹、移动终端记事本、移动终端 短信文件夹及移动终端彩信文件夹中任一或其组合中保存的所述 SNS 账号 信息。 2. The method according to claim 1, wherein the step of the SNS client agent reading the SNS account information saved in the terminal comprises: the SNS client agent reading the mobile terminal card holder, the mobile terminal notebook, and the mobile terminal The SNS account information saved in any one or a combination of the SMS folder and the mobile terminal MMS folder.
3、 如权利要求 1所述的方法, 其中, 所述 SNS账号信息包括: 所述 SNS账号和所述 SNS账号的 SNS类型; 所述 SNS客户端代理根据所述 SNS账号信息调用 SNS网站开放接口, 将 SNS账号添加为终端用户的好友的步骤包括: 所述 SNS客户端代理根据所述 SNS账号的所述 SNS类型调用相应的The method of claim 1, wherein the SNS account information comprises: the SNS account and the SNS type of the SNS account; the SNS client agent invokes an SNS website open interface according to the SNS account information. The step of adding the SNS account as a friend of the terminal user includes: the SNS client agent invoking a corresponding one according to the SNS type of the SNS account
SNS网站开放接口将所述 SNS账号添加为终端用户的好友。 The SNS website open interface adds the SNS account as a friend of the end user.
4、 如权利要求 3所述的方法, 所述方法还包括: 所述 SNS客户端代理根据所述 SNS账号的 SNS类型调用相应的 SNS网 站开放接口将所述 SNS账号添加为终端用户的好友时, 所述 SNS客户端代 理将所述终端用户登录所述 SNS网站的登录信息以及所述 SNS账号发送至 所述 SNS网站, 并接收所述 SNS网站返回的添加好友结果; 其中, 所述终 端用户包括一个或多个。 The method of claim 3, the method further comprising: the SNS client agent invoking the corresponding SNS website open interface to add the SNS account as a friend of the terminal user according to the SNS type of the SNS account The SNS client agent sends the login information of the terminal user to the SNS website and the SNS account to the SNS website, and receives the added friend result returned by the SNS website; wherein, the terminal user Includes one or more.
5、 如权利要求 3所述的方法, 其中, 所述添加好友结果包括: 添加失败信息, 所述添加失败信息包括添加失 败的 SNS账号信息; 所述方法还包括: 所述 SNS客户端代理预设失败重新添加次数, 在接收 到所述 SNS网站返回的所述添加失败信息后,判断是否达到所述预设失败重 新添加次数, 如果没有达到, 则根据所述添加失败信息中所述 SNS 账号的 SNS类型调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用 户的好友, 否则通知终端用户添加好友失败; 和 /或 所述 SNS客户端代理提示用户终端是否选择重新添加该联系人为好友, 若用户终端选择是, 则根据所述添加失败信息中所述 SNS账号的 SNS类型 调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友, 否则, 删除所述添加失败的 SNS账号信息。 The method of claim 3, wherein the adding the friend result comprises: adding the failure information, the adding the failure information comprises adding the failed SNS account information; the method further comprising: the SNS client agent pre- Set the number of failed re-adds, receive After the adding the failure information to the SNS website, determining whether the preset number of failed re-additions is reached, if not, the corresponding SNS website is invoked according to the SNS type of the SNS account in the adding failure information. The open interface re-adds the SNS account as a friend of the terminal user, otherwise the terminal user is notified to fail to add the friend; and/or the SNS client agent prompts the user terminal whether to choose to re-add the contact as a friend, and if the user terminal selects yes, Then, the SNS account is re-added as the friend of the terminal user by calling the corresponding SNS website open interface according to the SNS type of the SNS account in the adding failure information. Otherwise, the added SNS account information is deleted.
6、 一种社交网站 SNS客户端代理, 包括读取模块和好友添加模块, 其 中: 所述读取模块设置成: 读取 SNS账号信息; 所述好友添加模块设置成: 根据所述 SNS账号信息调用 SNS网站开放 接口将 SNS账号添加为终端用户的好友。 A social network SNS client agent, comprising a reading module and a friend adding module, wherein: the reading module is configured to: read SNS account information; and the friend adding module is set to: according to the SNS account information Call the SNS website open interface to add the SNS account as a friend of the end user.
7、 如权利要求 6所述的 SNS客户端代理, 其中, 所述读取模块设置成 按照以下方式读取 SNS账号信息: 读取移动终端名片夹、 移动终端记事本、 移动终端短信文件夹及移动终 端彩信文件夹中任一或其组合中保存的所述 SNS账号信息。 The SNS client agent according to claim 6, wherein the reading module is configured to read the SNS account information in the following manner: reading the mobile terminal business card holder, the mobile terminal notebook, the mobile terminal short message folder, and The SNS account information saved in any one or a combination of the mobile terminal MMS folders.
8、 如权利要求 7所述的 SNS客户端代理, 其中, 所述 SNS账号信息包括: 所述 SNS账号和所述 SNS账号的 SNS类型; 所述好友添加模块设置成按照以下方式根据所述 SNS 账号信息调用The SNS client agent according to claim 7, wherein the SNS account information includes: the SNS account and an SNS type of the SNS account; the friend adding module is set to be according to the SNS according to the following manner Account information call
SNS网站开放接口将 SNS账号添加为终端用户的好友: 所述好友添加模块根据所述 SNS账号的 SNS类型调用相应的 SNS网站 开放接口将所述 SNS账号添加为终端用户的好友。 The SNS website is added to the SNS account as a friend of the terminal user. The friend adding module calls the corresponding SNS website according to the SNS type of the SNS account. The open interface adds the SNS account as a friend of the terminal user.
9、 如权利要求 8所述的 SNS客户端代理, 所述 SNS客户端代理还包括 与所述好友添加模块相连的接收模块, 其中: 所述好友添加模块还设置成: 在根据所述 SNS账号的 SNS类型调用相 应的 SNS网站开放接口将所述 SNS账号添加为终端用户的好友时, 将所述 终端用户登录所述 SNS网站的登录信息以及所述 SNS账号发送至所述 SNS 网站, 其中, 所述终端用户包括一个或多个; 所述接收模块设置成: 接收所述 SNS网站返回的添加好友结果, 并将所 述添加好友结果转发至所述好友添加模块。 The SNS client agent according to claim 8, the SNS client agent further includes a receiving module connected to the buddy adding module, wherein: the buddy adding module is further configured to: according to the SNS account SNS type call phase When the SNS website open interface adds the SNS account as a friend of the terminal user, the login information of the terminal user logging in to the SNS website and the SNS account are sent to the SNS website, where the terminal user The receiving module is configured to: receive the added friend result returned by the SNS website, and forward the added friend result to the friend adding module.
10、 如权利要求 9所述的 SNS客户端代理, 其中, 所述添加好友结果包括: 添加失败信息, 所述添加失败信息包括添加失 败的 SNS账号信息; 所述好友添加模块还设置成:预设失败重新添加次数,在接收到所述 SNS 网站返回的添加失败信息后, 判断是否达到所述预设失败重新添加次数, 如 果没有达到, 则根据所述添加失败信息中所述 SNS账号的 SNS类型调用相 应的 SNS网站开放接口重新将所述 SNS账号添加为终端用户的好友, 否则 通知终端用户添加好友失败; 和 /或 所述好友添加模块还设置成: 提示用户终端是否选择重新添加该联系人 为好友, 若用户终端选择是, 则根据所述添加失败信息中所述 SNS 账号的 SNS类型调用相应的 SNS网站开放接口重新将所述 SNS账号添加为终端用 户的好友, 否则, 删除所述添加失败的 SNS账号信息。 The SNS client agent according to claim 9, wherein the adding the friend result comprises: adding the failure information, the adding failure information includes adding the failed SNS account information; the friend adding module is further configured to: The number of failed re-additions is determined. After receiving the information about the addition of the failure information returned by the SNS website, it is determined whether the preset number of failed re-additions is reached. If not, the SNS of the SNS account in the failure information is added according to the added information. The type invokes the corresponding SNS website open interface to re-add the SNS account as a friend of the end user, otherwise the terminal user is notified to fail to add the friend; and/or the friend adding module is further configured to: prompt the user terminal whether to choose to re-add the contact If the user terminal selects yes, the SNS account is re-introduced as the friend of the terminal user by calling the corresponding SNS website open interface according to the SNS type of the SNS account in the adding failure information. Otherwise, deleting the added Failed SNS account information.
11、 一种终端, 包括: 如权利要求 6~10中任一项所述的社交网站 SNS 客户端代理。 A terminal comprising: a social networking site SNS client agent according to any one of claims 6-10.
12、 一种添加社交网站 SNS好友的系统, 包括: 如权利要求 11所述的 终端以及 SNS网站, 其中, 所述 SNS网站包括开放接口。  12. A system for adding a social networking site SNS friend, comprising: the terminal according to claim 11 and an SNS website, wherein the SNS website comprises an open interface.
PCT/CN2012/073971 2012-01-16 2012-04-13 Method, client agent, terminal and system for adding sns friend WO2013107115A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012100128561A CN102611739A (en) 2012-01-16 2012-01-16 Method, client agent, terminal and system for adding SNS (social network service) friend
CN201210012856.1 2012-01-16

Publications (1)

Publication Number Publication Date
WO2013107115A1 true WO2013107115A1 (en) 2013-07-25

Family

ID=46528889

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073971 WO2013107115A1 (en) 2012-01-16 2012-04-13 Method, client agent, terminal and system for adding sns friend

Country Status (2)

Country Link
CN (1) CN102611739A (en)
WO (1) WO2013107115A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540377B (en) * 2018-04-09 2021-10-08 青岛海信移动通信技术股份有限公司 Information processing method and device for social application and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006565A (en) * 2010-08-24 2011-04-06 上海合合信息科技发展有限公司 Method for sending personal social account numbers to host of business card after identification of business card
CN102255897A (en) * 2011-07-04 2011-11-23 盛大计算机(上海)有限公司 IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1921577A1 (en) * 2006-11-10 2008-05-14 Yamaha Corporation Social networking system
CN102263799A (en) * 2010-05-25 2011-11-30 腾讯数码(天津)有限公司 Friend recommendation system and method for social network service (SNS) network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006565A (en) * 2010-08-24 2011-04-06 上海合合信息科技发展有限公司 Method for sending personal social account numbers to host of business card after identification of business card
CN102255897A (en) * 2011-07-04 2011-11-23 盛大计算机(上海)有限公司 IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology

Also Published As

Publication number Publication date
CN102611739A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
EP2891296B1 (en) Systems and methods for sharing data among multiple end user devices
CN102843421B (en) The implementation method of customer relationship and device in social networks application
US7707292B2 (en) Method for signing into a mobile device over a network
US8621571B2 (en) Online service providing system, method, server and mobile device thereof, and computer program product
CN104253899B (en) The control method and device of communicating terminal
WO2012130036A1 (en) Cross-application network communication method and device
EP2785086A1 (en) Social network user information association method and device
WO2012088933A1 (en) Method, terminal and server for adding user association relationship
WO2011113372A1 (en) Method, system and group server for synchronizing operations of multiple groups
WO2011026410A1 (en) Method and electronic device for receiving, viewing and forwarding information published on network
WO2014106385A1 (en) Method and system for integrating information about each contact person and mobile terminal
WO2015010465A1 (en) Receiving information processing method and device
WO2011032408A1 (en) Method and mobile terminal for processing information of instant communication contacts
WO2009076866A1 (en) Method, system and device for remote control terminal
WO2012152028A1 (en) Method and device for implementing terminal-based converged messaging service
WO2013189363A2 (en) Method for sending/receiving information by both parties in call state and mobile terminal
WO2014110972A1 (en) Method and apparatus for updating address book of terminal
WO2014048162A1 (en) Method, apparatus, and device for processing message
WO2012152009A1 (en) Information processing method and device for communication terminal and terminal
CN105228024A (en) Set-top box users exchange method
WO2011140904A1 (en) Method for processing messages, device and application server thereof
CN103650417B (en) The method and system of managing voice mail in universal plug and play network environment
WO2016197884A1 (en) Identity-based data processing method and device
WO2013107115A1 (en) Method, client agent, terminal and system for adding sns friend
CN101090516A (en) Method for short message chat at computer by mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12866049

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12866049

Country of ref document: EP

Kind code of ref document: A1