CN117155891A - Method and device for sending messages on multiple social media platforms by one key - Google Patents

Method and device for sending messages on multiple social media platforms by one key Download PDF

Info

Publication number
CN117155891A
CN117155891A CN202311406770.1A CN202311406770A CN117155891A CN 117155891 A CN117155891 A CN 117155891A CN 202311406770 A CN202311406770 A CN 202311406770A CN 117155891 A CN117155891 A CN 117155891A
Authority
CN
China
Prior art keywords
message
social media
analysis result
density
media platforms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311406770.1A
Other languages
Chinese (zh)
Other versions
CN117155891B (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.)
Oneweb Beijing Technology Co ltd
Original Assignee
Oneweb Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneweb Beijing Technology Co ltd filed Critical Oneweb Beijing Technology Co ltd
Priority to CN202311406770.1A priority Critical patent/CN117155891B/en
Publication of CN117155891A publication Critical patent/CN117155891A/en
Application granted granted Critical
Publication of CN117155891B publication Critical patent/CN117155891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/06Message adaptation to terminal or network requirements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Abstract

The embodiment of the application provides a method and a device for sending messages on a plurality of social media platforms by one key, belonging to the technical field of data processing, wherein the method comprises the following steps: through a preset identity authentication flow, identity authentication and authorization are realized for a plurality of social media platforms; acquiring JSON data C sent by a front-end platform to obtain a message analysis result set J containing m messages; forming a first message analysis result set and a second message analysis result set through the intensive calculation function g; and sending the truncated message set and the link message set as replacement messages of the first message analysis result set together with the second message analysis result set in the plurality of social media platforms. By adopting the scheme, the sending requirements of a plurality of social media can be automatically analyzed and matched, and the accuracy and the instantaneity of multi-platform message sending are further improved.

Description

Method and device for sending messages on multiple social media platforms by one key
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for sending a message on multiple social media platforms by one key, and an electronic device.
Background
With the development of internet technology, more and more social media (e.g., newwave microblogs, instagram, facebook, etc.) may be provided for users to send social messages, and a social media platform generally provides an API (application program interface) to enable third party applications to interact with the social media platform, so as to implement a function of sending messages by one key. However, these APIs typically have limitations, including limitations on the number of requests per day or hour, and thus one-touch sending of multiple messages may be limited by these limitations. If the usage limit of the API is exceeded, the message cannot be normally published. In the course of transmitting a plurality of messages by one key, various errors may occur, such as transmission failure, server failure, or network connection problem. Applications need to have the ability to handle these error conditions and provide an effective failure recovery mechanism. At the same time, the social media platform may continually update its APIs, which may cause compatibility problems for the application after updating. The application needs to be updated in time to ensure compatibility with the latest version of the platform. In addition, different social media platforms may have different requirements on the format and content of the message, including character limitations, image size, and link format. An application needs to ensure that the generated message is properly displayed and formatted on each platform.
The above problems affect that a key can cause unsuccessful message sending in the process of sending messages by a plurality of social media platforms.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method, an apparatus, and an electronic device for sending a message by one key on multiple social media platforms, which at least partially solve the problems existing in the prior art.
In a first aspect, an embodiment of the present application provides a method for sending a message by one key on a plurality of social media platforms, including:
through a preset identity authentication flow, identity authentication and authorization are realized on a plurality of social media platforms, and n numbers of social media platforms are obtainedAfter the verification of the social media platform is passed, a social media platform message sending structure set is constructed aiming at message sending rules of different social media platforms
Acquiring JSON data C sent by a front-end platform, wherein the JSON data comprises to-be-sent messages M applied to a plurality of social media platforms, and the to-be-sent messages M are based on a structure set through a content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,,m≤n;
the message density of each message analysis result in the collection J is calculated through the intensive calculation function g to obtain a message density vectorBy vectorizing the message densityEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be less than the reference densityThe message analysis result forms a second message analysis result set,k≤m;
Parsing a result set for a first messageThe message content in the message is truncated to obtain a truncated message setAnd linking a set of messagesWill truncate the message setAnd linking a set of messagesReplacing message as first message analysis result set in multiple social media platforms and second message analysis result setAnd (5) sending the data together.
According to a specific implementation manner of the embodiment of the present disclosure, the implementing identity verification and authorization on a plurality of social media platforms through a preset identity authentication procedure includes:
the user logs in one-time authorization and manages homepages of a plurality of social media platforms, and agrees to give authorization to the client;
the client applies tokens to the authentication server by using the authorization obtained by managing homepages of a plurality of social media platforms;
after the authentication server authenticates the client, the client confirms that the client agrees to issue the token so that the client can use the token to apply for obtaining the resource from the resource server, and after the resource server confirms that the token is correct, the client agrees to open the resource.
According to a specific implementation manner of the embodiment of the present disclosure, the acquiring JSON data C sent by the front-end platform includes:
a database or data structure is created for receiving JSON data C sent by the front-end platform, the JSON data C including the user's message content associated with the user's social media account, media files, and posting plans.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
integrating APIs of the respective social media platforms so that messages can be posted through the APIs;
logic for implementing message posting for each social media platform, including transferring message text, media files to corresponding API endpoints;
the response of the API is processed to ensure that the message has been successfully published and to record the published status.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
allowing the user to select the time of release of the message so that the message can be scheduled to be released on a particular date and time in the future;
setting a task scheduling system to automatically trigger message release at a designated time;
setting an error processing mechanism to cope with errors or faults of the social media API;
issue activity and error logs are recorded to enable tracking and troubleshooting of problems.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
when the API is used for publishing the message, the following operations are carried out on the published content:
and (3) data verification: ensuring that the message data meets the requirements of the social media platform, including character restrictions, format requirements and content requirements;
checking media materials: aiming at the pictures and video materials contained in the message, ensuring that the pictures and the video materials are successfully uploaded to a social media platform, and acquiring effective media ID or URL;
checking authority: checking whether the API access token has the right to issue a message, and ensuring that the API access token has the right to issue to a target page or account;
content inspection: according to the policies and criteria of the social media platform, ensuring that the message content does not contain illegal, harmful or non-compliant content;
repeated inspection: repeated distribution of the same content is avoided.
According to a specific implementation manner of the embodiment of the disclosure, the message density of each message analysis result in the set J is calculated by the dense calculation function g to obtain a message density vectorComprising:
for m message elements contained in set J, preprocessing them to obtain a standard message sequenceSequence of standard messagesDivided intoSub-sequence segments and using the formula
The message density vector is calculated and,for the average length value of the messages in the message parsing result set J, size () is a length calculation function,
according to a specific implementation of an embodiment of the present disclosure, the message density is determined byEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setFurther comprising:
by the formula
Calculating reference densitySim () represents a similarity calculation function.
In a second aspect, an embodiment of the present application provides an apparatus for sending a message by one key on a plurality of social media platforms, including:
the receiving module is used for realizing identity verification and authorization on a plurality of social media platforms through a preset identity authentication flow, and constructing a social media platform message sending structure set aiming at message sending rules of different social media platforms after n social media platforms pass verification
The analysis module is used for acquiring JSON data C sent by the front-end platform, wherein the JSON data comprises to-be-sent messages M applied to a plurality of social media platforms, and the JSON data are based on a structure body set through a content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,,m≤n;
a forming module for calculating the message density of each message analysis result in the collection J by the intensive calculation function g to obtain a message density vectorBy vectorizing the message densityEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be less than the reference densityThe message analysis result forms a second message analysis result set,k≤m;
A sending module for analyzing the result set of the first messageThe message content in the message is truncated to obtain a truncated message setAnd linking a set of messagesWill truncate the message setAnd linking a set of messagesReplacing message as first message analysis result set in multiple social media platforms and second message analysis result setAnd (5) sending the data together.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of sending messages at a plurality of social media platforms by one key in any implementation of the foregoing Ren Di aspect or the first aspect.
In a fourth aspect, embodiments of the present application also provide a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method of sending a message on a plurality of social media platforms by a key in any implementation of the foregoing first aspect or the first aspect.
In a fifth aspect, embodiments of the present application also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of sending a message at a plurality of social media platforms by a key in any of the foregoing first aspect or implementations of the first aspect.
The scheme for sending messages by one key in the embodiment of the application on a plurality of social media platforms comprises the following steps: through a preset identity authentication flow, identity authentication and authorization are realized on a plurality of social media platforms, and after n social media platform authentication passes, a social media platform message sending structure set is constructed aiming at message sending rules of different social media platformsThe method comprises the steps of carrying out a first treatment on the surface of the Acquiring JSON data C sent by a front-end platform, wherein the JSON data comprises to-be-sent messages applied to a plurality of social media platformsM, based on the structure set by the content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,m is less than or equal to n; the message density of each message analysis result in the collection J is calculated through the intensive calculation function g to obtain a message density vectorBy vectorizing the message densityEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be less than the reference densityThe message analysis result forms a second message analysis result setK is less than or equal to m; parsing a result set for a first messageThe message content in the message is truncated to obtain a truncated message setAnd linking a set of messagesWill truncate the message setAnd linking a set of messagesReplacing message as first message analysis result set in multiple social media platforms and second message analysis result setAnd (5) sending the data together. According to the scheme provided by the application, the sending requirements of a plurality of social media can be automatically analyzed and matched, so that the accuracy and the instantaneity of multi-platform message sending are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for sending messages on multiple social media platforms by one key according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for sending messages on multiple social media platforms by one key according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a device for sending messages on multiple social media platforms by one key according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the disclosure by way of illustration, and only the components related to the disclosure are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method for sending messages on a plurality of social media platforms by one key. The method for sending messages by one key on multiple social media platforms according to the embodiment may be performed by a computing device, where the computing device may be implemented as software, or as a combination of software and hardware, and the computing device may be integrally provided in a server, a terminal device, or the like.
Referring to fig. 1 and 2, an embodiment of the present disclosure provides a method for sending messages on a plurality of social media platforms by one key, including:
s101, identity verification and authorization are achieved on a plurality of social media platforms through a preset identity authentication flow, and after n social media platform verification passes, a social media platform message sending structure set is constructed according to message sending rules of different social media platforms
Authentication and authorization is implemented for each social media platform so that the user's application may post messages on behalf of the user.
For this reason, the scheme of the application is provided with a user authorized multi-social platform homepage, and the user authorized multi-social platform homepage can:
(1) Allowing a user to authorize and manage home pages of a plurality of social media platforms at one time;
(2) After the user selects one platform, the user is guided to complete the authorization process. This involves logging into an account with the social media platform and then granting the appropriate rights. The step of authorizing will vary according to the requirements of each platform, requiring the user to log in and grant publishing and management rights.
After n social media platforms pass verification, the message sending rules of different social media platforms can be further searched, and different social media platforms may have different character restrictions and rules, for example:
character restriction
Twitter: buffer typically supports message content of 280 characters according to the character restriction of Twitter. If the user's message exceeds this limit, buffer will alert the user and ask for the shortened content.
Facebook: the character restrictions of Facebook depend on different types of messages. The normal status update may contain up to 63,206 characters. However, lengthy messages may be truncated, so it is preferable to keep the content thin.
Instagram: the character limitations of the instragram are related to the message header and description. Titles typically support up to 30 characters, and descriptions support up to 2,200 characters.
Linkedln: the character limit of LinkedIn also depends on different types of messages, but in general the status update may contain a maximum of 1,300 characters.
Picture and video limitations
Allowing users to add pictures and videos to messages, but different social media platforms have different requirements on the size and format of the multimedia. Ensuring that the user's pictures and videos meet the requirements of each platform avoids problems.
Message sending rules of different social media platforms are aimed at, and a social media platform message sending structure set is constructedSending a set of fabrics by a messageThe message sent by the user can be further filtered and analyzed, so that the sending requirement of each social media is met.
S102, acquiring JSON data C sent by a front-end platform, wherein the JSON data comprises to-be-sent messages M applied to a plurality of social media platforms, and the JSON data are based on a structure set through a content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,,m≤n。
accepting JSON data sent by the front end generally requires writing corresponding code in the back end to process the request and parse the JSON data, which may contain the content of the message to be sent
As an example, the partial content in JSON data may be:
[{"page_id":"17841411597761034","platform":"instagram","material_type":3,"duration":"15","video_thumbnail":"https://oneupload.onesight.com/publish/video/2023/09/25/1565628_NwqDUn-1695633777736-7149.mp4x-oss-process=video/snapshot,t_0000,f_jpg,ar_auto","material_title":"1565628_NOvhri-1693375316993-3441.mp4","link":"","linkedin_title":"","link_description":"","resource":"https://oneupload.onesight.com/publish/video/2023/09/25/1565628_NwqDUn-1695633777736-7149.mp4","privacy_status":"","size":1565628,"scheduling_type":3,"material_id":"","facebookmentionselected":"","reviewer":0,"message":"","thumb_offset":0,"send_time":1695633792000,"is_reels":1,"share_to_feed":1},{"page_id":"831177093898451","platform":"facebook","material_type":3,"duration":"15","video_thumbnail":"https://oneupload.onesight.com/publish/video/2023/09/25/1565628_NwqDUn-1695633777736-7149.mp4x-oss-process=video/snapshot,t_0000,f_jpg,ar_auto","material_title":"1565628_NOvhri-1693375316993-3441.mp4","link":"","linkedin_title":"","link_description":"","resource":"https://oneupload.onesight.com/publish/video/2023/09/25/1565628_NwqDUn-1695633777736-7149.mp4","privacy_status":"","size":1565628,"scheduling_type":3,"material_id":"","facebookmentionselected":[],"reviewer":0,"message":"","send_time":1695633792000},{"page_id":"1405070111816372225","platform":"twitter","material_type":3,"duration":"15","video_thumbnail":"https://oneupload.onesight.com/publish/1c60db13-dc79-4520-a785-569e084b1143.mp4x-oss-process=video/snapshot,t_000,f_jpg,ar_auto","material_title":"","link":"","linkedin_title":"","link_description":"","resource":"https://oneupload.onesight.com/publish/1c60db13-dc79-4520-a785-569e084b1143.mp4","privacy_status":"","size":null,"scheduling_type":3,"material_id":"","facebookmentionselected":"","reviewer":0,"message":"","send_time":1695633792000}]
the content in the JSON can be extracted to obtain the message M to be sent, and the content analysis function f is based on the structure setAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,m is less than or equal to n, m message analysis results can be matched with message sending rules of n social media platforms, and therefore the message sending structure set of the social media platforms is metIs not limited.
S103, calculating the message density of each message analysis result in the collection J through the intensive calculation function g to obtain a message density vectorBy vectorizing the message densityEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be less than the reference densityThe message analysis result forms a second message analysis result set,k≤m。
In order to further improve the real-time performance of message transmission, the message density in the m message analysis result sets J can be further calculated, and the real-time performance of one-key transmission is improved. For this purpose, the m message elements contained in the set J can be preprocessed to obtain a standard message sequenceSequence of standard messagesDivided intoSub-sequence segments and using the formula
The message density vector is calculated and,for the average length value of the messages in the message parsing result set J, size () is a length calculation function,
further, the formula can be obtained
Calculating reference densitySim () represents a similarity calculation function.
S104, analyzing the result set of the first messageThe message content in the message is truncated to obtain a truncated message setAnd linking a set of messagesWill truncate the message setAnd linking a set of messagesReplacing message as first message analysis result set in multiple social media platforms and second message analysis result setAnd (5) sending the data together.
The elements in the first message analysis result set can be cut off, so that the message represented by the elements is split into cut-off message elements and link message elements to form a cut-off message setAnd linking a set of messages. Truncated message setsThe messages contained in the message are that the density value is smaller than the reference densityIs to link message setsThe messages in the system are issued in advance through a third party platform and form links of the third party platform, and the links of the third party platform form a link message setIn this way, the message set will be truncatedAnd linking a set of messagesSecond message parsing result set as replacement message for first message parsing result setThe message is sent together in the multimedia platform, so that the sending load of the message can be greatly reduced, and the real-time performance of the message sending is improved.
Referring to fig. 2, according to a specific implementation manner of the embodiment of the present disclosure, the implementing identity verification and authorization on a plurality of social media platforms through a preset identity authentication procedure includes:
s201, a user logs in one-time authorization and manages homepages of a plurality of social media platforms, and agrees to give authorization to a client;
s202, a client applies tokens to an authentication server by using authorizations obtained by managing homepages of a plurality of social media platforms;
s203, after the authentication server authenticates the client, the authentication server confirms that the client agrees to issue the token so that the client can use the token to apply for obtaining the resource from the resource server, and after the authentication server confirms that the token does not have any error, the resource server agrees to open the resource to the client.
According to a specific implementation manner of the embodiment of the present disclosure, the acquiring JSON data C sent by the front-end platform includes:
a database or data structure is created for receiving JSON data C sent by the front-end platform, the JSON data C including the user's message content associated with the user's social media account, media files, and posting plans.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
integrating APIs of the respective social media platforms so that messages can be posted through the APIs;
logic for implementing message posting for each social media platform, including transferring message text, media files to corresponding API endpoints;
the response of the API is processed to ensure that the message has been successfully published and to record the published status.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
allowing the user to select the time of release of the message so that the message can be scheduled to be released on a particular date and time in the future;
setting a task scheduling system to automatically trigger message release at a designated time;
setting an error processing mechanism to cope with errors or faults of the social media API;
issue activity and error logs are recorded to enable tracking and troubleshooting of problems.
According to a specific implementation of an embodiment of the disclosure, the method further includes:
when the API is used for publishing the message, the following operations are carried out on the published content:
and (3) data verification: ensuring that the message data meets the requirements of the social media platform, including character restrictions, format requirements and content requirements;
checking media materials: aiming at the pictures and video materials contained in the message, ensuring that the pictures and the video materials are successfully uploaded to a social media platform, and acquiring effective media ID or URL;
checking authority: checking whether the API access token has the right to issue a message, and ensuring that the API access token has the right to issue to a target page or account;
content inspection: according to the policies and criteria of the social media platform, ensuring that the message content does not contain illegal, harmful or non-compliant content;
repeated inspection: repeated distribution of the same content is avoided.
According to a specific implementation manner of the embodiment of the disclosure, the message density of each message analysis result in the set J is calculated by the dense calculation function g to obtain a message density vectorComprising:
for m message elements contained in set J, they are enteredLine pre-processing to obtain standard message sequencesSequence of standard messagesDivided intoSub-sequence segments and using the formula
For the average length value of the messages in the message parsing result set J, size () is a length calculation function,
according to a specific implementation of an embodiment of the present disclosure, the message density is determined byEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setFurther comprising:
by the formula
Calculating reference densitySim () represents a similarity calculation function.
Corresponding to the above method embodiment, referring to fig. 3, the embodiment of the present application further discloses a device 30 for sending messages by one key on multiple social media platforms, including:
the receiving module 301 is configured to implement identity verification and authorization on multiple social media platforms through a preset identity authentication procedure, and construct a social media platform message sending structure set for message sending rules of different social media platforms after n social media platforms are obtained and verified
The parsing module 302 is configured to obtain JSON data C sent by the front-end platform, where the JSON data includes to-be-sent messages M applied to multiple social media platforms, and the to-be-sent messages are based on a structure set through a content parsing function fAnalyzing the message M to be sent to obtain a message analysis result set J containing M messages,,m≤n;
a forming module 303, configured to calculate the message density of each message analysis result in the set J by using the dense calculation function g to obtain a message density vectorBy vectorizing the message densityEach element of (a) and reference densityComparing, selecting k density values from the set J to be greater than the reference densityThe message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be less than the reference densityThe message analysis result forms a second message analysis result set,k≤m;
A sending module 304 for parsing the result set for the first messageThe message content in the message is truncated to obtain a truncated message setAnd linking a set of messagesWill truncate the message setAnd linking a set of messagesReplacing message as first message analysis result set in multiple social media platforms and second message analysis result setAnd (5) sending the data together.
Referring to fig. 4, an embodiment of the present application also provides an electronic device 60, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of one-touch messaging across multiple social media platforms of the method embodiments described above.
Embodiments of the present application also provide a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the foregoing method embodiments.
Embodiments of the present application also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of sending messages at a plurality of social media platforms by one of the foregoing method embodiments.
Referring now to fig. 4, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic device 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows the electronic device 60 with various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present application should be included in the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A method for sending messages on a plurality of social media platforms in one key, comprising:
through a preset identity authentication flow, identity authentication and authorization are realized on a plurality of social media platforms, and after n social media platform authentication passes, a social media platform message sending structure set is constructed aiming at message sending rules of different social media platforms
Acquiring JSON data C sent by a front-end platform, wherein the JSON data comprises to-be-sent messages M applied to a plurality of social media platforms, and the to-be-sent messages M are based on a structure set through a content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J, < >>,m≤n;
The message density of each message analysis result in the collection J is calculated through the intensive calculation function g to obtain a message density vectorBy means of the message density vector +.>The individual elements of (a) and the reference density->Comparing, k density values are selected from the set J to be greater than the reference density +.>The message analysis result forms a first message analysis result setSelecting m-k density values from the set J to be smaller than the reference density +.>Message parsing result, forming a second message parsing result set +.>,k≤m;
For the firstMessage parsing result setThe message content in the message is truncated to obtain a truncated message set +.>And Link message set->Will truncate the message setAnd Link message set->Replacing message used as first message analysis result set in a plurality of social media platforms and second message analysis result set +.>And (5) sending the data together.
2. The method of claim 1, wherein the authenticating and authorizing the plurality of social media platforms through the preset authentication procedure comprises:
the user logs in one-time authorization and manages homepages of a plurality of social media platforms, and agrees to give authorization to the client;
the client applies tokens to the authentication server by using the authorization obtained by managing homepages of a plurality of social media platforms;
after the authentication server authenticates the client, the client confirms that the client agrees to issue the token so that the client can use the token to apply for obtaining the resource from the resource server, and after the resource server confirms that the token is correct, the client agrees to open the resource.
3. The method according to claim 2, wherein the acquiring JSON data C sent by the front-end platform includes:
a database or data structure is created for receiving JSON data C sent by the front-end platform, the JSON data C including the user's message content associated with the user's social media account, media files, and posting plans.
4. A method according to claim 3, characterized in that the method further comprises:
integrating APIs of the respective social media platforms so that messages can be posted through the APIs;
logic for implementing message posting for each social media platform, including transferring message text, media files to corresponding API endpoints;
the response of the API is processed to ensure that the message has been successfully published and to record the published status.
5. The method according to claim 4, wherein the method further comprises:
allowing the user to select the time of release of the message so that the message can be scheduled to be released on a particular date and time in the future;
setting a task scheduling system to automatically trigger message release at a designated time;
setting an error processing mechanism to cope with errors or faults of the social media API;
issue activity and error logs are recorded to enable tracking and troubleshooting of problems.
6. The method of claim 5, wherein the method further comprises:
when the API is used for publishing the message, the following operations are carried out on the published content:
and (3) data verification: ensuring that the message data meets the requirements of the social media platform, including character restrictions, format requirements and content requirements;
checking media materials: aiming at the pictures and video materials contained in the message, ensuring that the pictures and the video materials are successfully uploaded to a social media platform, and acquiring effective media ID or URL;
checking authority: checking whether the API access token has the right to issue a message, and ensuring that the API access token has the right to issue to a target page or account;
content inspection: according to the policies and criteria of the social media platform, ensuring that the message content does not contain illegal, harmful or non-compliant content;
repeated inspection: repeated distribution of the same content is avoided.
7. The method of claim 6, wherein the message density vector is obtained by computing the message density of each message parsing result in the set J by a dense computing function gComprising:
for m message elements contained in set J, preprocessing them to obtain a standard message sequenceStandard message sequence->Divided into->A subsequence segment and using the formula +.>Calculating message density vector, ">For the average length value of the messages in the message parsing result set J, size () is a length calculation function,/>
8. The method of claim 7, wherein the passing is performed by passing a message density vectorThe individual elements of (a) and the reference density->Comparing, k density values are selected from the set J to be greater than the reference density +.>Message analysis result, forming a first message analysis result set +.>Further comprising:
by the formulaCalculating reference Density->Sim () represents a similarity calculation function.
9. An apparatus for sending messages in a plurality of social media platforms in one key, comprising:
the receiving module is used for realizing identity verification and authorization on a plurality of social media platforms through a preset identity authentication flow, and constructing a social media platform message sending structure set aiming at message sending rules of different social media platforms after n social media platforms pass verification
The analysis module is used for acquiring JSON data C sent by the front-end platform, wherein the JSON data comprises to-be-sent messages M applied to a plurality of social media platforms, and the JSON data are based on a structure body set through a content analysis function fAnalyzing the message M to be sent to obtain a message analysis result set J, < >>,m≤n;
A forming module for calculating the message density of each message analysis result in the collection J by the intensive calculation function g to obtain a message density vectorBy means of the message density vector +.>The individual elements of (a) and the reference density->Comparing, k density values are selected from the set J to be greater than the reference density +.>Message analysis result, forming a first message analysis result set +.>Selecting m-k density values from the set J to be smaller than the reference density +.>Message parsing result, forming a second message parsing result set +.>,k≤m;
A sending module for analyzing the result set of the first messageThe message content in the message is truncated to obtain a truncated message set +.>And Link message set->Will truncate the message set +.>And Link message set->Replacing message used as first message analysis result set in a plurality of social media platforms and second message analysis result set +.>And (5) sending the data together.
10. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of one-touch messaging at a plurality of social media platforms of any of the preceding claims 1-8.
CN202311406770.1A 2023-10-27 2023-10-27 Method and device for sending messages on multiple social media platforms by one key Active CN117155891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311406770.1A CN117155891B (en) 2023-10-27 2023-10-27 Method and device for sending messages on multiple social media platforms by one key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311406770.1A CN117155891B (en) 2023-10-27 2023-10-27 Method and device for sending messages on multiple social media platforms by one key

Publications (2)

Publication Number Publication Date
CN117155891A true CN117155891A (en) 2023-12-01
CN117155891B CN117155891B (en) 2024-01-19

Family

ID=88904598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311406770.1A Active CN117155891B (en) 2023-10-27 2023-10-27 Method and device for sending messages on multiple social media platforms by one key

Country Status (1)

Country Link
CN (1) CN117155891B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114202436A (en) * 2015-06-05 2022-03-18 苹果公司 Social interactions in media streaming services
US20220103681A1 (en) * 2020-09-25 2022-03-31 Mitel Networks (International) Limited Communication system for mitigating incoming spoofed callers using social media
CN114667529A (en) * 2019-03-04 2022-06-24 推特公司 Media content capture and presentation
US11494811B1 (en) * 2022-02-24 2022-11-08 Isolation Network, Inc. Artificial intelligence prediction of high-value social media audience behavior for marketing campaigns
US20230075884A1 (en) * 2021-09-06 2023-03-09 Artema Labs, Inc Systems and Methods for Token Management in Social Media Environments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114202436A (en) * 2015-06-05 2022-03-18 苹果公司 Social interactions in media streaming services
CN114667529A (en) * 2019-03-04 2022-06-24 推特公司 Media content capture and presentation
US20220103681A1 (en) * 2020-09-25 2022-03-31 Mitel Networks (International) Limited Communication system for mitigating incoming spoofed callers using social media
US20230075884A1 (en) * 2021-09-06 2023-03-09 Artema Labs, Inc Systems and Methods for Token Management in Social Media Environments
US11494811B1 (en) * 2022-02-24 2022-11-08 Isolation Network, Inc. Artificial intelligence prediction of high-value social media audience behavior for marketing campaigns

Also Published As

Publication number Publication date
CN117155891B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
US10511586B2 (en) Systems, apparatuses, methods, and non-transitory computer readable media for authenticating user using history of user
US8819116B1 (en) Providing services using a device capabilities service
US9286642B2 (en) Content access management in a social networking system for externally stored content
US20150332596A1 (en) Integrated learning system
EP2836982B1 (en) Digital content delivery
US20180060927A1 (en) System and Method for Performing Transactions Similar to Previous Transactions
US9501477B2 (en) Global media lists for mobile devices
CN109857908B (en) Method and apparatus for matching videos
US20130159123A1 (en) Content access management in a social networking system for locally stored content
US11800201B2 (en) Method and apparatus for outputting information
US20170270625A1 (en) Systems and methods for identifying matching content
EP3851991B1 (en) System, device, and method of providing authenticity and rights verification mechanism for media content and for its derived versions
US9009803B2 (en) Method and system for planning and management of digital events
CN103020121A (en) Inserting media content from multiple repositories
US9665695B2 (en) Systems and methods for ranking rules that identify potentially illegitimate activities
US20140250208A1 (en) Grouping personal playlists into buddy list used to modify a media stream
KR101346288B1 (en) Method and apparatus for setting user influence value in network service
US20220247736A1 (en) Method and apparatus for sharing content data between networked devices
US9942183B2 (en) Processing connection request in online service
CN117155891B (en) Method and device for sending messages on multiple social media platforms by one key
US20150379522A1 (en) Modifiable sharing of received content
US10671738B2 (en) Controlled publication of sensitive content
JP2015197692A (en) Server device, cache system, information processing method, and program
CN116578208A (en) Document processing method and device and electronic equipment
CN114785492A (en) Data encryption method and device, electronic equipment and 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
CB03 Change of inventor or designer information

Inventor after: Niu Cece

Inventor after: Jing Yanrui

Inventor after: Li Lei

Inventor after: Miao Yu

Inventor after: Kou Zhenfang

Inventor before: Niu Ce

Inventor before: Jing Yanrui

Inventor before: Li Lei

Inventor before: Miao Yu

Inventor before: Kou Zhenfang

CB03 Change of inventor or designer information