CN112511405B - Sharing method and device for social application, server and storage medium - Google Patents

Sharing method and device for social application, server and storage medium Download PDF

Info

Publication number
CN112511405B
CN112511405B CN202011191409.8A CN202011191409A CN112511405B CN 112511405 B CN112511405 B CN 112511405B CN 202011191409 A CN202011191409 A CN 202011191409A CN 112511405 B CN112511405 B CN 112511405B
Authority
CN
China
Prior art keywords
sharing
social
target
session
predefined
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.)
Active
Application number
CN202011191409.8A
Other languages
Chinese (zh)
Other versions
CN112511405A (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.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Bigo Technology Singapore Pte 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 Bigo Technology Singapore Pte Ltd filed Critical Bigo Technology Singapore Pte Ltd
Priority to CN202011191409.8A priority Critical patent/CN112511405B/en
Publication of CN112511405A publication Critical patent/CN112511405A/en
Application granted granted Critical
Publication of CN112511405B publication Critical patent/CN112511405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Abstract

The embodiment of the invention discloses a sharing method and device for social application, a server and a storage medium. Wherein, the method comprises the following steps: responding to a sharing initiation instruction on the social application, creating a corresponding sharing session, and determining a corresponding optional sharing target based on the social business where the sharing object is located; and determining a corresponding selected sharing target from the selectable sharing targets, and operating a predefined sharing operation example under the selected sharing target through a sharing session so as to share the sharing object to the selected sharing target. According to the technical scheme provided by the embodiment of the invention, a sharing session mode is adopted to set uniform sharing logic for different social services in the social application, and the uniformity of the sharing logic under different social services is ensured, so that the decoupling between the sharing logic in the social application and the social services is realized, the complexity of the sharing logic under different social services is avoided, and the sharing accuracy in the social application is improved.

Description

Sharing method and device for social application, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network communication, in particular to a sharing method, a sharing device, a sharing server and a sharing storage medium for social applications.
Background
With the popularization of the mobile internet, various social applications developed by adopting an Instant Messaging (IM) technology are widely applied to daily lives of people, and at the moment, in order to enrich social entertainment among different users, a corresponding content sharing function is usually configured on the social applications, so that valuable or interesting contents for the users are quickly spread among the different users.
At present, a matched sharing logic is specially set for a sharing function configured under each service in a social application, the sharing logic specifies a sharing execution operation executed between a sharing object and a sharing target according to a specific service requirement, at this time, when the sharing operation is executed under different services in the social application, the matched sharing logic under the service is firstly found out, and then the corresponding sharing operation is executed according to the sharing logic, so that convenient sharing under different services is realized.
However, with the iterative development of services in social applications and the diversification of sharing scenes and sharing contents, sharing logics in social applications become more and more complex and chaotic, and sharing logics of different services affect each other, so that the sharing accuracy under different services cannot be guaranteed.
Disclosure of Invention
The embodiment of the invention provides a sharing method, a sharing device, a server and a storage medium for social applications, which are used for realizing the decoupling between sharing logics and social services in the social applications, ensuring the unity of the sharing logics under different social services and improving the sharing accuracy in the social applications.
In a first aspect, an embodiment of the present invention provides a sharing method for a social application, where the method includes:
responding to a sharing initiating instruction on the social application, creating a corresponding sharing session, and determining a corresponding optional sharing target based on the social business where the sharing object is located;
and determining a corresponding selected sharing target from the selectable sharing targets, and running a predefined sharing operation example under the selected sharing target through the sharing session so as to share the sharing object to the selected sharing target.
In a second aspect, an embodiment of the present invention provides a sharing apparatus for a social application, where the apparatus includes:
the sharing session creating module is used for responding to a sharing initiating instruction on the social application, creating a corresponding sharing session and determining a corresponding optional sharing target based on the social business where the sharing object is located;
and the sharing module is used for determining a corresponding selected sharing target from the selectable sharing targets, and operating a predefined sharing operation example under the selected sharing target through the sharing session so as to share the sharing object to the selected sharing target.
In a third aspect, an embodiment of the present invention provides a server, where the server includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the sharing method for social applications according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the sharing method for social applications according to any embodiment of the present invention.
According to the sharing method, device, server and storage medium for the social application provided by the embodiment of the invention, when a sharing initiation instruction on the social application is received, a corresponding sharing session is firstly created for the current sharing, meanwhile, a corresponding optional sharing target is determined based on the social service where the current sharing target is located, the sharing target selected by a social user is determined from the optional sharing targets supported by the social service, then, a predefined sharing operation example under each selected sharing target is operated through the created sharing session, so that the current sharing target is shared to each selected sharing target, at the moment, a sharing session mode is adopted to set uniform sharing logics for different social services in the social application, the uniformity of the sharing logics under different social services is ensured, the decoupling between the sharing logics in the social application and the social services is realized, the corresponding sharing logics do not need to be specially set under each social service in the social application, the complexity of the sharing logics under different social services is avoided, and the sharing accuracy in the social application is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1A is a flowchart of a sharing method for social applications according to an embodiment of the present invention;
fig. 1B is a schematic diagram illustrating a content sharing process in a social application according to an embodiment of the present invention;
fig. 2A is a flowchart of a sharing method for social applications according to a second embodiment of the present invention;
fig. 2B is a schematic diagram illustrating a sharing execution process in a social application according to a second embodiment of the present invention;
fig. 3A is a flowchart of a sharing method for social applications according to a third embodiment of the present invention;
fig. 3B is a schematic diagram illustrating a selection process of selecting a sharing target in the method according to the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a sharing device for social applications according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1A is a flowchart of a sharing method for social applications according to an embodiment of the present invention, which may be applied to a case where a corresponding sharing operation is performed under each social service in any social application. The sharing method for the social application provided by the embodiment of the present invention may be executed by the sharing device for the social application provided by the embodiment of the present invention, and the device may be implemented by software and/or hardware and integrated in a server executing the method.
Specifically, referring to fig. 1A, the method may include the steps of:
s110, responding to a sharing initiation instruction on the social application, creating a corresponding sharing session, and determining a corresponding optional sharing target based on the social business where the sharing object is located.
Optionally, the social application in this embodiment is any one of the developed entertainment application programs that support chatting and dynamic publishing among different users, and at this time, in order to enrich the social content of different users under each social service, corresponding content sharing functions are generally configured under each social service of the social application, for example, under the chat service, content of a message type such as a text, a picture, a video, or a card may be shared in the social application, under the dynamic publishing service, user content of a dynamic or post published by each user may be shared in the social application, and under the external social service, content of an external file, third-party application content, or a web page may be shared in the social application. Therefore, different types of sharing objects exist for different social services in the social application, and the sharing object refers to content to be shared, which is specified each time sharing is initiated, and may include chat messages, dynamic publishing, posts, external consultation content, and the like.
At this time, because the existing scheme sets a matched sharing logic specially under each social service in the social application, and as the social services expand continuously, the sharing logic becomes more and more complex, which causes errors in the sharing operation in the social application, in order to improve the sharing accuracy in the social application, considering that the sharing operations under different social services have a general sharing flow, this embodiment may set aside specific social services, and mainly focuses on the general flow of the sharing logic to design a unified sharing logic, so as to decouple the sharing logic from the specific social services, and in the sharing logic, specific sharing operation logics may be defined under each social service, so as to separate the actual execution process of the sharing operations, and adopt a unified manner to process the sharing operations under different social services, thereby ensuring the sharing accuracy under different social services.
It should be noted that, in this embodiment, an overall sharing process may be defined in a Share Session (Share Session) manner, and when a Share is initiated each time, a specific sharing requirement supported by a social service where the Share is located may be analyzed, and on the basis of a general sharing process, a unique sharing characteristic required by the social service itself is additionally configured, so as to ensure sharing accuracy under different design services.
Specifically, if a current social user wants to share a certain social content in the social application with other social users, the current social content needs to be selected and the current sharing operation is executed by triggering a corresponding sharing button, a corresponding sharing initiating instruction is generated for the current sharing operation in the social application, a sharing object to be shared at this time is carried in the sharing initiating instruction, and the sharing object can be selected by the social user independently for the content to be shared under different social services in the social application. Then, in response to a sharing initiation instruction in the social application, the embodiment may create a corresponding sharing session according to a general sharing process under different social services, and inherit a unique sharing characteristic under the social service where the sharing is performed this time through the sharing session, thereby implementing accurate sharing under different social services.
Further, a complete sharing process needs to analyze a specific sharing target and a sharing execution process in addition to determining a sharing object, where the sharing target refers to a sharing destination in the social application, and for example, sharing objects under different social services may be shared to sharing targets under different types such as friends, groups, or content streams; due to the diversity of sharing scenes and contents to be shared, sharing targets supported under different social services are different, for example, chat messages only support sharing to other friends or groups, and the like, but do not support sharing to external applications, so that for each social service in the social applications, an optional sharing target supported under the social service can be predefined, and the optional sharing target can be a sharing destination allowed to share various message contents under different social services; at this time, when the sharing is initiated each time and the corresponding sharing session is created, the social service where the current sharing object is located needs to be additionally analyzed, and then each optional sharing target supported under the social service is determined, so that the subsequent social user is supported under the social service and only needs to select the current sharing target from the optional sharing targets, and therefore sharing errors under the social service are avoided.
And S120, determining a corresponding selected sharing target from the selectable sharing targets, and operating a predefined sharing operation example under the selected sharing target through a sharing session so as to share the sharing object to the selected sharing target.
Optionally, in order to ensure autonomy of a sharing operation in the social application, in this embodiment, after determining a corresponding selectable sharing target based on a social service in which the current sharing object is located, it may be known that the current sharing may support a social user to select an actual sharing target, that is, a selected sharing target in this embodiment, at this time, as shown in fig. 1B, a target selection path may be provided for the current sharing targeted social user through a created sharing session, the target selection path may include each selectable sharing target supported by the social service in which the current sharing object is located, and then the social user executes a corresponding selection operation, and a specific selection operation executed by the social user is analyzed through the sharing session, so as to determine the selected sharing target specified in the current sharing by the social application from each selectable sharing target.
Further, after the corresponding selected sharing targets are determined from the selectable sharing targets, the corresponding sharing operation can be executed for each selected sharing target, at this time, in order to ensure sharing accuracy under different sharing targets, and in consideration of the existence of a fixed sharing process under different sharing targets, in this embodiment, when a unified sharing logic is designed, a matched sharing operation instance is also defined for each selectable sharing target supported for sharing under each social service in the social application in advance, and the sharing operation instance can indicate specific logic of the sharing operation executed under the corresponding selectable sharing target, so that after the corresponding selected sharing targets are determined from the selectable sharing targets, sharing operation instances predefined under the selected sharing targets facing this time can be found out directly through the created sharing session, then the sharing operation instances are run through the sharing session, so that the corresponding sharing process is executed under the selected sharing targets, so that the sharing object of this time is shared to each selected sharing target, at this time, the sharing logic uniformly set under different social services in the selected sharing session is set for different social services in the selected sharing session, and the sharing logic of the social application under different social services is guaranteed, thereby realizing the sharing of the sharing logic set up in the unified sharing process under the social application.
In addition, because multiple sharing may be initiated under different social services in the social application, and at this time, multiple sharing sessions may be created, so as to ensure independence between the sharing sessions, in this embodiment, a Session Manager (Share Session Manager) is predefined, each sharing Session is managed by the Session Manager, at this time, attribute data under each sharing Session may exist through a Session identifier (Session Id), and the role of data flow carrier and sharing process control is assumed in the whole sharing process; meanwhile, when the sharing is completed or terminated, the corresponding sharing session can be cleared through the session manager.
Meanwhile, after the predefined sharing operation example under the selected sharing target is operated through the sharing session and the current sharing object is shared to each selected sharing target, the corresponding sharing result can be prompted in the social application, so that the social user can know whether the sharing is successful.
According to the technical scheme provided by the embodiment, when a sharing initiation instruction on the social application is received, a corresponding sharing session is created for the current sharing, meanwhile, a corresponding optional sharing target is determined based on the social service where the current sharing target is located, the sharing target selected by a social user is determined from the optional sharing targets supported by the social service, and then a predefined sharing operation example under each selected sharing target is operated through the created sharing session, so that the current sharing target is shared to each selected sharing target.
Example two
Fig. 2A is a flowchart of a sharing method for social applications according to a second embodiment of the present invention, and fig. 2B is a schematic diagram of a sharing execution process in social applications according to the second embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 2A, the present embodiment mainly explains a specific creation process of the sharing session and a specific configuration process of the sharing operation instance through the sharing session in detail.
Optionally, as shown in fig. 2A, the present embodiment may include the following steps:
and S210, responding to a sharing initiating instruction on the social application, and generating a corresponding sharing session according to a predefined general sharing flow and a default sharing statement.
Optionally, in response to a sharing initiation instruction on the social application, when a corresponding sharing session is created, a general sharing process and a default sharing statement indicated under a predefined unified sharing logic may be analyzed first, where the general sharing process may represent a specific sharing process adopted when a sharing operation is performed through the sharing session, and the default sharing statement may represent data and behaviors used for defining the sharing process, such as initialization configuration information and an abnormal sharing processing manner adopted by default when the sharing operation is performed through the sharing session, at this time, according to specific requirements for the sharing process in the predefined general sharing process and the default sharing statement, a corresponding sharing session may be generated, and in the sharing session, general data, a state and an abstract interface referred to when the sharing process is performed may be defined, and the abstract interface may include information such as initialization configuration, acquisition configuration, abnormal processing, and the like of the sharing process, and the corresponding sharing session may be inherited through social services in which different sharing objects are located subsequently, so as to implement a related interface or a duplication method.
And S220, analyzing the sharing object carried in the sharing initiating instruction, and determining the social service where the sharing object is located.
Optionally, when the corresponding optional sharing target is determined based on the social service where the sharing object is located, the corresponding sharing initiation instruction of the response is firstly analyzed, the sharing object specified in the sharing is obtained according to the analysis result, and then the social service where the sharing object is located is judged by analyzing the content type of the sharing object in the social application, so that each optional sharing target supported under the social service is determined in the following process, and therefore the sharing accuracy under the social service is ensured.
And S230, determining a corresponding optional sharing target based on the social business where the sharing object is located.
S240, configuring a predefined sharing operation instance under each selectable sharing target in the sharing session.
Specifically, in order to ensure sharing accuracy under different sharing targets and consider that fixed sharing flows exist under different sharing targets, in this embodiment, when designing a unified sharing logic, a matched sharing operation instance is defined for each optional sharing target supported and shared under each social service in the social application in advance, at this time, in order to improve searching efficiency of the predefined sharing operation instance under the selected sharing target, after determining the corresponding optional sharing target based on the social service in which the sharing object is located, the embodiment may directly configure the predefined sharing operation instance under each optional sharing target of the social service into the created sharing session in a unified manner, and when subsequently showing each optional sharing target by the social user, may also provide a corresponding target selection path to the social user with reference to each configured sharing operation instance in the sharing session, thereby ensuring sharing efficiency in the social application.
It should be noted that, in this embodiment, the predefined sharing operation instance under each selectable sharing target may be implemented by using a predefined sharing execution processor interface (IShareHandler), and at this time, the predefined sharing operation instance under each selected sharing target may be run by calling the sharing execution processor interface corresponding to the selected sharing target through a sharing session, so that decoupling between the sharing logic and the social services and sharing isolation between different social services are implemented by using a combination manner of the sharing execution processor interfaces under different social services, a modification frequency of the universal sharing code is reduced, stability of the sharing code is improved, a structure of the entire sharing code is clearer, maintenance cost of the sharing code is reduced, a sharing process under a new social service is easily expanded, and development efficiency of a sharing process under a social service is improved.
Illustratively, in order to ensure the integrity of the sharing operation instances in the sharing session, in this embodiment, a preset operation list (Handlers list) is set in the sharing session, so that when the predefined sharing operation instances under each selectable sharing target are configured in the sharing session, the predefined sharing operation instances under each selectable sharing target may be directly and sequentially added to the preset operation list in the sharing session, and then the sharing operation instances under the selected sharing targets are directly searched from the preset operation list, so that the searching efficiency of the sharing operation instances is improved.
And S250, determining a corresponding selected sharing target from the optional sharing targets, and searching a predefined sharing operation example under the selected sharing target from the configured sharing operation examples through the sharing session.
Optionally, after the corresponding selected sharing target is determined from the selectable sharing targets, since the predefined sharing operation instance under the selected sharing target is configured in the sharing session in the embodiment when each selectable sharing target under the corresponding social service is determined, the predefined sharing operation instance under the selected sharing target may be directly searched from the configured sharing operation instances through the sharing session, so that the corresponding sharing process may be executed by subsequently running each searched sharing operation instance.
And S260, running a predefined sharing operation example under the selected sharing target through the sharing session so as to share the sharing object to the selected sharing target.
According to the technical scheme provided by the embodiment, when a sharing initiation instruction on the social application is received, a corresponding sharing session is established according to a predefined general sharing flow and a default sharing statement for the current sharing, the unity of the sharing session under different social services is ensured, meanwhile, a corresponding optional sharing target is determined based on the social service where the current sharing target is located, predefined sharing operation examples under each optional sharing target are configured in the sharing session, so that after the sharing target selected by a social user is determined from the optional sharing targets supported by the social services, predefined sharing operation examples under each selected sharing target can be directly searched from the configured sharing operation examples, the searching efficiency of the sharing operation examples is improved, then the predefined sharing operation examples under each sharing selected target are operated through the established sharing session, the current sharing object is shared to each selected sharing target, unified sharing logic is set under different social services in the social application in a sharing session mode, the unification of the sharing logic under different social services is ensured, the sharing logic between the internal sharing application and the social services is not required to be set in the social services, and the sharing logic under different social services is avoided.
EXAMPLE III
Fig. 3A is a flowchart of a sharing method for social applications according to a third embodiment of the present invention, and fig. 3B is a schematic diagram of a selection process of selecting a sharing target in the method according to the third embodiment of the present invention. The present embodiment is optimized based on the above embodiments. Specifically, as shown in fig. 3A, the present embodiment mainly explains in detail a specific selection process for selecting a corresponding selected sharing target from various selectable sharing targets.
Optionally, as shown in fig. 3A, the present embodiment may include the following steps:
s310, responding to a sharing initiation instruction on the social application, creating a corresponding sharing session, and determining a corresponding optional sharing target based on the social business where the sharing object is located.
And S320, generating a corresponding sharing selection page according to the predefined general page configuration in the sharing session and the default selection configuration of the selectable sharing target.
Optionally, after determining a corresponding selectable Sharing target based on the social service in which the Sharing object is located, in order to ensure the selection autonomy of the Sharing target, in this embodiment, each selectable Sharing target under the social service in which the Sharing is located needs to be provided for the social user to select, at this time, in order to ensure the intuitive selection of the Sharing target, in this embodiment, each selectable Sharing target under the social service in which the Sharing is located is displayed to the social user in a manner of a Sharing selection page, at this time, because of the universality of the Sharing selection page under different social services, a corresponding general page configuration (Sharing Activity) is predefined, and when the Sharing selection page displays the corresponding selectable Sharing target, for a default selection configuration (Display Config) of each selectable Sharing target in the Sharing selection page under different social services, the general page configuration can indicate configuration information such as format, size and style of the Sharing selection page, the default selection configuration can indicate actual Display characteristics of each selectable Sharing target in the Sharing selection page, at the moment, certain Display differences and subdivision exist among different selectable Sharing targets, for example, visible attributes such as friend visibility, group visibility and public visibility are set in a dynamic state in a chat application, single selection or multiple selection can be set when the Sharing target is selected, at the moment, corresponding default selection configurations such as availability and default selection are set for each selectable Sharing target, and the default selection configurations are provided for the Sharing selection page to use; at this time, when a corresponding sharing session is created, as shown in fig. 3B, predefined general page configurations and default selection configurations of each selectable sharing target under the social service where the sharing is performed are directly written in the sharing session, so that when each selectable sharing target is displayed to the social user, a corresponding sharing selection page is first generated according to the general page configurations written in the created sharing session and the default selection configurations of each selectable sharing target, and at this time, each selectable sharing target is correspondingly displayed in the sharing selection page according to the default selection configurations of each selectable sharing target.
S330, displaying a corresponding sharing selection page to the social user through the sharing session.
Optionally, after the corresponding sharing selection page is generated, the sharing selection page is directly displayed on the social application interface through a sharing session, so that each selectable sharing target is displayed to the social user and selected by the social user, at this time, a selection control of each selectable sharing target is set in the sharing selection page, as shown in fig. 3B, the social user may select the selectable sharing target to share content by triggering the selection control of the corresponding selectable sharing target.
And S340, recording a selectable sharing target selected by the social user in the sharing selection page through a predefined sharing selection interface in the sharing session, and taking the selectable sharing target as the selected sharing target.
In this embodiment, in order to ensure accuracy of selecting a sharing target, when the sharing selection page is generated, an sharing selection interface (IShare Select) is additionally implemented in the sharing selection page and written into the sharing session, and when a social user selects a corresponding selected sharing target from various selectable sharing targets in the sharing selection page, the selectable sharing target hooked by the social user in the sharing selection page can be recorded directly through the predefined sharing selection interface in the sharing session, so that the recorded selectable sharing target is used as the selected sharing target in this embodiment.
And S350, in the sharing session, respectively setting corresponding selected marks for the selected sharing targets through the mark interface under each selected sharing target.
Optionally, in order to accurately mark the selected sharing target, in this embodiment, a corresponding mark interface (Selection) is predefined for each selectable sharing target under different social services, and is used to distinguish the selected sharing target and record related information selected by the user, at this time, after the selected sharing target selected by the social user in the sharing Selection page is recorded through the sharing Selection interface, a corresponding Selection mark is set for the selected sharing target through the predefined mark interface under each selected sharing target, so that the corresponding selected sharing target can be directly found out subsequently according to the Selection mark, for example, the selected sharing target shared to the stop in a certain chat application may be set as StorySelection, and the selected sharing target shared to the content stream may be set as WorldSelection, and the selected sharing target shared to the chat session may be set as IMSelection.
And S360, synchronously operating predefined sharing operation instances under all selected sharing targets according to the selected marks through the sharing session so as to share the sharing objects to the selected sharing targets.
Optionally, when the sharing operation instance predefined under the selected sharing target runs through the sharing session, each selected sharing target selected by the social user at this time can be uniformly found out through the sharing session according to the set selection mark, the sharing operation instance predefined under each selected sharing target runs synchronously, the sharing operation is prevented from being executed under other unselected sharing targets, the sharing object at this time is correspondingly shared to each selected sharing target, and the sharing accuracy in the social application is improved.
According to the technical scheme provided by the embodiment, when a sharing initiation instruction on the social application is received, a corresponding sharing session is created for the current sharing, meanwhile, a corresponding optional sharing target is determined based on the social service where the current sharing target is located, the social user is enabled to determine the sharing target selected by the social user from the optional sharing targets supported by the social service by displaying the corresponding sharing selection page to the social user, the intuitiveness of the selected sharing target is improved, then, a predefined sharing operation example under each selected sharing target is operated through the created sharing session, so that the current sharing target is shared with each selected sharing target, at the moment, a sharing session mode is adopted to set uniform sharing logics for different social services in the social application, the uniformity of the sharing logics under different social services is ensured, the decoupling between the sharing logics in the social application and the social services is realized, the corresponding sharing logics do not need to be specially set under each social service in the social application, the complexity of the sharing logics under different social services is avoided, and the accuracy of the sharing in the social application is improved.
Example four
Fig. 4 is a schematic structural diagram of a sharing device for social applications according to a fourth embodiment of the present invention, specifically, as shown in fig. 4, the device may include:
the sharing session creating module 410 is configured to create a corresponding sharing session in response to a sharing initiation instruction on the social application, and determine a corresponding optional sharing target based on the social service where the sharing object is located;
the sharing module 420 is configured to determine a corresponding selected sharing target from the selectable sharing targets, and run a predefined sharing operation instance under the selected sharing target through the sharing session, so as to share the sharing object with the selected sharing target.
According to the technical scheme provided by the embodiment, when a sharing initiation instruction on the social application is received, a corresponding sharing session is created for the current sharing, meanwhile, a corresponding optional sharing target is determined based on the social service where the current sharing target is located, the sharing target selected by a social user is determined from the optional sharing targets supported by the social service, and then a predefined sharing operation example under each selected sharing target is operated through the created sharing session, so that the current sharing target is shared to each selected sharing target.
The sharing device for the social application provided by the embodiment can be applied to the sharing method for the social application provided by any embodiment, and has corresponding functions and benefits.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention, as shown in fig. 5, the server includes a processor 50, a storage device 51, and a communication device 52; the number of the processors 50 in the server may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50, the storage means 51 and the communication means 52 in the server may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The server provided by the embodiment can be used for executing the sharing method for the social application provided by any embodiment, and has corresponding functions and beneficial effects.
Example six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, may implement the sharing method for social applications in any of the embodiments described above. The method specifically comprises the following steps:
responding to a sharing initiating instruction on the social application, creating a corresponding sharing session, and determining a corresponding optional sharing target based on the social business where the sharing object is located;
and determining a corresponding selected sharing target from the selectable sharing targets, and running a predefined sharing operation example under the selected sharing target through the sharing session so as to share the sharing object to the selected sharing target.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the sharing method for social applications provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the sharing device for social applications, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (13)

1. A sharing method for social applications, comprising:
responding to a sharing initiation instruction on the social application, creating a corresponding sharing session, determining a corresponding optional sharing target based on the social business where the sharing object is located, and configuring a predefined sharing operation instance under each optional sharing target of the social business into the created sharing session, wherein the sharing initiation instruction comprises the following steps:
adding predefined sharing operation instances under the selectable sharing targets into a preset operation list in the sharing session in sequence;
and determining a corresponding selected sharing target from the selectable sharing targets, and calling a sharing execution processor interface corresponding to the selected sharing target through the sharing session to run a predefined sharing operation instance under the selected sharing target so as to share the sharing object to the selected sharing target.
2. The method according to claim 1, before invoking, through the sharing session, a sharing execution processor interface corresponding to the selected sharing target to run a sharing operation instance predefined under the selected sharing target, further comprising:
and searching a predefined sharing operation example under the selected sharing target from the configured sharing operation examples through the sharing session.
3. The method of claim 1, further comprising, before determining the corresponding selectable sharing target based on the social business in which the sharing object is located:
and analyzing the sharing object carried in the sharing initiating instruction, and determining the social service of the sharing object.
4. The method of claim 1, wherein the creating the corresponding sharing session comprises:
and generating a corresponding sharing session according to a predefined general sharing flow and a default sharing statement.
5. The method of claim 1, further comprising, prior to determining a corresponding selected sharing objective from the selectable sharing objectives:
and displaying a corresponding sharing selection page to the social users through the sharing session, wherein a selection control of each selectable sharing target is arranged in the sharing selection page.
6. The method of claim 5, further comprising, before presenting a corresponding sharing selection page to a social user through the sharing session:
and generating a corresponding sharing selection page according to the predefined general page configuration in the sharing session and the default selection configuration of the selectable sharing target.
7. The method of claim 5, wherein determining the corresponding selected sharing objective from the selectable sharing objectives comprises:
recording optional sharing targets selected by the social users in the sharing selection page through a predefined sharing selection interface in the sharing session, and taking the optional sharing targets as the selected sharing targets.
8. The method of claim 1, after determining the corresponding selected sharing objective from the selectable sharing objectives, further comprising:
in the sharing session, setting corresponding selected marks for the selected sharing targets through mark interfaces under each selected sharing target;
correspondingly, the invoking, by the sharing session, a sharing execution processor interface corresponding to the selected sharing target to run a predefined sharing operation instance under the selected sharing target includes:
and synchronously operating predefined sharing operation instances under each selected sharing target according to the selected marks through the sharing session.
9. The method according to any one of claims 1-8, further comprising, after creating the corresponding sharing session:
and managing the sharing session through a predefined session manager, and clearing the sharing session when the sharing is finished or terminated.
10. The method according to any one of claims 1 to 8, further comprising, after invoking, through the sharing session, a sharing execution processor interface corresponding to the selected sharing target to run a predefined sharing operation instance under the selected sharing target, the following:
and prompting a corresponding sharing result in the social application.
11. A sharing apparatus for social applications, comprising:
the sharing session creating module is used for creating a corresponding sharing session in response to a sharing initiating instruction on the social application, determining a corresponding optional sharing target based on the social service where the sharing object is located, and configuring a predefined sharing operation instance under each optional sharing target of the social service into the created sharing session, and includes:
adding predefined sharing operation instances under the selectable sharing targets into a preset operation list in the sharing session in sequence;
and the sharing module is used for determining a corresponding selected sharing target from the selectable sharing targets, calling a sharing execution processor interface corresponding to the selected sharing target through the sharing session to run a predefined sharing operation instance under the selected sharing target, and sharing the sharing object to the selected sharing target.
12. A server, characterized in that the server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the sharing method for social applications of any of claims 1-10.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a sharing method for social applications according to any one of claims 1 to 10.
CN202011191409.8A 2020-10-30 2020-10-30 Sharing method and device for social application, server and storage medium Active CN112511405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191409.8A CN112511405B (en) 2020-10-30 2020-10-30 Sharing method and device for social application, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191409.8A CN112511405B (en) 2020-10-30 2020-10-30 Sharing method and device for social application, server and storage medium

Publications (2)

Publication Number Publication Date
CN112511405A CN112511405A (en) 2021-03-16
CN112511405B true CN112511405B (en) 2023-04-18

Family

ID=74954574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191409.8A Active CN112511405B (en) 2020-10-30 2020-10-30 Sharing method and device for social application, server and storage medium

Country Status (1)

Country Link
CN (1) CN112511405B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528245A (en) * 2015-12-03 2016-04-27 时趣互动(北京)科技有限公司 Method and system for sharing advertisement contents to social networks in mobile applications
WO2017121332A1 (en) * 2016-01-15 2017-07-20 海致网络技术(北京)有限公司 Information sharing method and system
EP3349394A1 (en) * 2017-01-16 2018-07-18 Remote Media, LLC System, method, and application for exchanging content in a social network environment
CN108322465A (en) * 2018-01-31 2018-07-24 腾讯科技(深圳)有限公司 Resource sharing, request, processing method, device, storage medium and equipment
CN109600408A (en) * 2017-09-30 2019-04-09 腾讯科技(深圳)有限公司 Resource sharing method, device, storage medium and computer equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159714B (en) * 2007-11-30 2011-10-26 腾讯科技(深圳)有限公司 Instant communication method and device
US8825493B2 (en) * 2011-07-18 2014-09-02 At&T Intellectual Property I, L.P. Method and apparatus for social network communication over a media network
US10484189B2 (en) * 2013-11-13 2019-11-19 Microsoft Technology Licensing, Llc Enhanced collaboration services
CN105591885B (en) * 2016-01-21 2019-01-08 腾讯科技(深圳)有限公司 resource sharing method and device
CN106339155A (en) * 2016-08-26 2017-01-18 乐视控股(北京)有限公司 File sharing method and device
CN110807163A (en) * 2018-08-03 2020-02-18 先智创科(北京)科技有限公司 Method and apparatus for facilitating content sharing
CN111273832B (en) * 2020-02-27 2023-06-13 Oppo广东移动通信有限公司 Content sharing method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528245A (en) * 2015-12-03 2016-04-27 时趣互动(北京)科技有限公司 Method and system for sharing advertisement contents to social networks in mobile applications
WO2017121332A1 (en) * 2016-01-15 2017-07-20 海致网络技术(北京)有限公司 Information sharing method and system
EP3349394A1 (en) * 2017-01-16 2018-07-18 Remote Media, LLC System, method, and application for exchanging content in a social network environment
CN109600408A (en) * 2017-09-30 2019-04-09 腾讯科技(深圳)有限公司 Resource sharing method, device, storage medium and computer equipment
CN108322465A (en) * 2018-01-31 2018-07-24 腾讯科技(深圳)有限公司 Resource sharing, request, processing method, device, storage medium and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Jung-Tae Kim;Jong-Hoon Lee;SangWook Kim;Ik Kyun Kim.Social contents sharing model and system based on user location and social network.《2013 IEEE Third International Conference on Consumer Electronics ¿ Berlin (ICCE-Berlin)》.2013,全文. *
王建永;何旻诺;方宽;唐乐.分布式集群系统中Session会话的高效共享方法研究.电子设计工程.2020,(第06期),全文. *

Also Published As

Publication number Publication date
CN112511405A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
TWI640922B (en) Method and device for providing application information in mobile terminal devices
US20190347146A1 (en) Message processing method and apparatus, storage medium, and computer device
US9406049B2 (en) Electronic device and method for updating message recipients based on message body indicators
WO2018072634A1 (en) Application processing method and device
CN111814089B (en) Page rendering method and device, rendering server and storage medium
TW201835744A (en) Methods and apparatuses for selectively displaying messages based on a predicted importance
US10481752B2 (en) Method and device for a guided application to enhance a user interface
EP3384398A1 (en) Running applications using pre-generated components
CN107562556B (en) Failure recovery method, recovery device and storage medium
CN108712478B (en) A kind of method and apparatus for sharing boarding application
WO2018050036A1 (en) Communication method and device
KR101395857B1 (en) Instant messaging service based on items of interest to users
US20160255024A1 (en) Systems and methods for managing presentation of message content at user communication terminals
CN107203372B (en) Control display method and device
CN108353018B (en) Method, device and system for sending message
CN112333086A (en) Service method and device based on chat group and electronic equipment
TW201523419A (en) Window interface display method and system
CN112732386A (en) Message processing method, device, terminal and storage medium
CN109921916B (en) Message processing method and device in multi-user group, storage medium and terminal equipment
CN113110900A (en) Function determination method, interface configuration method, interface display method, interface configuration device, interface display device, and storage medium
WO2021253890A1 (en) Method and device for replying communication information in instant messaging application
CN112511405B (en) Sharing method and device for social application, server and storage medium
WO2020221076A1 (en) Hosted application generation method and device
US9577967B2 (en) Method and system for managing an informational site using a social networking application
CN111740850A (en) Group chat creating method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant