# Patent

## Title
Systems, methods, and machine readable media for social network application development using a custom markup language

## Abstract

Disclosed in some examples are systems, methods, and machine readable medium for programming an application for multiple target social networks using custom markup tags that are independent of any custom markup tags defined by social networking services. These independent tags may be translated into the custom markup tags defined by the social networking service of interest if the desired functionality is supported in that social networking service using custom markup tags or if the tags are not supported, by a set of instructions for executing the same functionality.

## Background
CLAIM OF PRIORITY
This patent application claims the benefit of priority, under 35 U.S.C. Section 119(e), to U.S. Provisional Patent Application Ser. No. 61/503,592, entitled “Social Network Markup Language,” filed on Jun. 30, 2011 to Brown, et. al., which is hereby incorporated by reference herein in its entirety.


COPYRIGHT NOTICE
A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever. The following notice applies to the software and data as described below and in the drawings that form a part of this document: Copyright Zynga, Inc, 2011. All Rights Reserved.
BACKGROUND
A social networking service is an online service, platform or site that allows members to build or reflect social networks or social relations among members. Typically, members construct profiles, which may include personal information such as name, contact information, employment information, photographs, personal messages, status information, links to web related content, blogs, and so on. Typically, only a portion of a member's profile may be viewed by the general public and/or other members.
The social networking site allows members to identify and establish links or connections with other members in order to build or reflect social networks or social relations among members. For instance, in the context of a business networking service, a person may establish a link or connection with his or her business contacts, including work colleagues, clients, customers, and so on. With a social networking service, a person may establish links or connections with his or her friends and family. A connection is generally formed using an invitation process in which one member “invites” a second member to form a link. The second member then has the option of accepting or declining the invitation. If the second member accepts the invitation, the first and second members are connected.
In general, a connection or link may represent or may be otherwise associated with an information access privilege, such that a first person who has established a connection with a second person is, via the establishment of that connection, authorizing the second person to view or access non-publicly available portions of their profiles. Of course, depending on the particular implementation of the business/social networking service, the nature and type of the information that may be shared as well as the granularity with which the access privileges may be defined to protect certain types of data may vary greatly.
A variety of different social networking services have gained popularity, including FACEBOOK® of Palo Alto, Calif., MYSPACE® of Beverly Hills, Calif. and run by News Corp., LINKEDIN® of Mountain View, Calif., TWITTER® of San Francisco, Calif., and the like. These sites often allow for third party applications to utilize certain functionality provided by the host social networking service. In some examples, these third party applications may utilize certain user interface (UI) elements of the social networking service, access personal information about a user (including profile information), and send and receive social interactions, such as messages, to the user of the third party application or to their connections. FACEBOOK®, for example, allows developers to create applications which are integrated into the FACEBOOK® user interface and with the FACEBOOK® social networking system. In some examples, these applications may include games such as CITYVILLE®, FARMVILLE®, and MAFIA WARS®, all developed by ZYNGA®, Inc. of San Francisco, Calif. These applications appear in a FACEBOOK® page, and make use of various features of FACEBOOK®, such as contacting friends to encourage them to join the game and play with the user and the like.
The social networking services integrate with these applications by providing to these applications an Application Programming Interface or “API.” In general, an API is a particular set of rules and specifications that a software program may follow to access and make use of the services and resources provided by another particular software program that implements that API. The API serves as an interface between different software programs and facilitates their interaction.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows in one example of the present disclosure a system showing social networking services, a network, a user terminal and a social networking application service.
FIG. 2 shows in one example of the present disclosure a social networking application.
FIG. 3 shows a method, according to one example of the present disclosure.
FIG. 4 shows a method, according to one example of the present disclosure.
FIG. 5 shows a method, according to one example of the present disclosure.
FIG. 6 shows a method of translating SNAPI calls into social network specific calls, according to one example of the present disclosure.
FIG. 7 shows a method of translating SNAPI calls into social network specific calls according to one example of the present disclosure.
FIG. 8 shows one example of a client SNAPI module.
FIG. 9 shows one example of a server SNAPI module.
FIG. 10 shows one example of a machine implementation, according to one example.
FIG. 11 shows one example of a method of translating SNML tags according to one example of the present disclosure.
FIG. 12 shows one example of a system for translating SNML tags according to one example of the present disclosure.



In the drawings, which are not necessarily drawn to scale, like numerals may describe similar components in different views. Like numerals having different letter suffixes may represent different instances of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed in the present document.
DETAILED DESCRIPTION
The API of one social network is not always the same as the API of a different social network. For example, the API format for FACEBOOK® is different than the API format for MYSPACE®. Format differences include the mechanism to submit the API requests (common methods include PHP, AJAX, HTML, or XML tags, JavaScript, and the like) and the structure of the requests (i.e. the arguments passed, their ordering, and the like). While the differences in the structures of the requests may often be accounted for based on the different mechanisms used (e.g., a JavaScript call will be a different structure than a PHP call), even when the mechanisms are the same, the structures of the requests often differ between social networking services (e.g. the arguments passed and the order in which they are passed to the social networking service will be different). As a result, third party applications developed for social networks that utilize the social networking APIs are typically social networking service dependent.
For example, to post a message to another user in LINKEDIN®, a developer may POST an XML file to a particular URL in a particular format. An example of the LINKEDIN® messaging format is:
<?xml version=‘1.0’encoding=‘UTF-8’?>
<mailbox-item>
<recipients>

    
    
        <recipient>
        
            <person path=‘/people/ ̃’/>
        
        
        </recipient>
        <recipient>
        
            <person path=“/people/janedoe”/>
        
        
        </recipient>
    
    


</recipients>
<subject>Hello—Sample Message.</subject>
<body>Hello World!</body>
</mailbox-item>
On the other hand, to post a message to another user on FACEBOOK®, developers utilize a JavaScript call according to a particular format. One example is:
FB.ui(
{

    
    
        method: ‘feed’,
        name: ‘Facebook Dialogs’,
        link: ‘http://someurl.com’,
        picture: ‘http://somepictureurl.jpg’,
        caption: ‘Hello-Sample Message’,
        description: ‘Hello—Sample Message’,
        message: ‘Hello World!’
    
    


},
function(response) {

    
    
        if (response && response.post_id) {
        
            alert(‘Post was published.’);
        
        
        } else {
        
            alert(‘Post was not published.’);
        
        
        }
    
    


}
);
Application developers that wish to develop applications for more than one social network need to spend effort and expense in producing a separate application for each social network. Additionally, any changes in the API of a social network will require retooling of all applications written for that social network. Thus if a developer has several applications written for a particular social network, each application will have to be manually updated. Recognizing these issues, an effort has recently sprung up to try and provide a standardized API for social networking services, OpenSocial, run by GOOGLE®, of Mountain View Calif. attempts to define a common API across multiple social networks. This effort, however, requires that social networks standardize their APIs to those defined by OpenSocial, many of which have not and will not do so.
Disclosed in one example is a system and method for facilitating the development of applications that may utilize the provided functions of a number of disparate social networks. The system and method defines a social networking service agnostic social networking application programming interface (SNAPI) that social networking applications may call to provide various social networking service functionalities. The SNAPI then converts these calls from the SNAPI format into a number of social networking service-specific API formats. This conversion includes both the method and the structure, including mapping the arguments passed via the SNAPI call to the proper locations in the respective network specific API call. For example, a SNAPI call made in JavaScript may be converted to a valid social networking service API call in PHP. The arguments passed by the social networking application in the SNAPI JavaScript call may be used to fill in the arguments in the PHP social networking service-specific API call. Both SNAPI and social networking service-specific API formats may include HTML or XML tags, JavaScript calls, PHP calls, Representative State Transfer (RESTful) calls, Python calls, Pert calls, AJAX calls, and any other means for accessing an API.
FIG. 1 shows one example system 1000. Typically, a user, such as user 1080, will access and communicate with one or more social networking services 1010-1030 through network 1040, In some examples, social networking services 1010-1030 may include FACEBOOK®, MYSPACE®, LINKEDIN®, TWITTER®, and the like. In some examples, this communication may be done through the user terminal 1050. User terminal 1050, in some examples, may include a personal computer (PC), laptop computer, tablet computer, smart phone or other cellular telephone, electronic book reader, or any other device that allows a user to access the functionality of the social networking service. In some examples an internet browser 1060 of the user terminal 1050 may be used to access the social networking services 1010-1030 using network 1040. Internet browser 1060, in some examples may include Internet Explorer® from Microsoft Corp., Redmond, Wash. Network 1040 may be any method by which user terminal 1050 may communicate with one or more social networking services 1010-1030. In some examples, network 1040 may include the interact, a wide area network “WAN”, a local area network “LAN”, cellular network, or any other method of allowing the user terminal 1050 to connect with the social networking service, and the like. While three social networking services are shown in FIG. 1 (1010-1030), it will be appreciated by those skilled in the art that the system and methods of the current disclosure are applicable to more or less than three social networks.
Typically, when a user 1080 accesses a third party application (such as a game) associated with one of the social networking services 1010-1030, the user 1080 selects the application via the social networking service 1010-1030, which then re-directs the user to access the application on another server. In some examples, this server may be located on a social networking application service 1090. The user's browser connects to the application server, downloads the application client, then displays or executes the application. In some examples, this social networking application 1070 may be or include HTML, XML, JavaScript, Adobe Flash, Microsoft Silverlight, and the like. The social network 1010-1030 from which the user selected the content may be called the host social network. The user's browser then executes or displays this social networking application 1070 until the user 1080 decides to exit, or the application closes or otherwise ends.
In some examples, while the application 1070 executes, it communicates with the host social networking service to which it is associated. Example communications include authenticating, authorizing, utilizing the user interface elements of the host social network, obtaining social network information about user 1080 (such as connections with other users), sending messages to other users, and the like.
In some examples, social networking application 1070 may communicate with social networking application service 1090. Social networking application service 1090 may include various functions to assist social networking application 1070. In some examples, social networking application service 1090 may include application module 1100, which stores and delivers to user terminals (including user terminal 1050) social networking application 1070 from data store 1130. In other examples, application module 1100 may contain execution logic for social networking application 1070. Examples of this execution logic include responding to user actions and inputs; payment and purchasing information for purchasing the application or unlocking; accelerating, or making available various features in the application 1070; sending messages to and from various other users of the application; storing application data in data store 1130; providing various media files such as graphics, video, and sound files; and the like. While social networking application service 1090 is shown in FIG. 1 as one system, the components and the functionality of social networking application service 1090 may be distributed across multiple systems.
In some examples, social networking application service 1090 includes a server authentication module 1110, which works with client authentication module 2010 (FIG. 2) to authenticate or authorize social networking application 1070 with a variety of social networking services 1010-1030.
In some examples, social networking application service 1090 includes a server social networking application programming interface module (server SNAPI module) 1120 which may assist client social networking application programming interface module (client SNAPI) 2050 (FIG. 2) on social networking application 1070 in implementing the SNAPI. Server SNAPI 1120 and client SNAPI 2050 will be discussed in more detail later.
One example social networking application 1070 is shown in FIG. 2. A social networking application 1070 is any application which utilizes, or is capable of utilizing, the API of one or more social networking services. In some examples social networking application 1070 may contain an input/output module 2020. Input/output module 2020 communicates with the user 1080, through user terminal 1050. Input/output module 2020 may be responsible for causing the user interface of the social networking application 1070 to be displayed and for handling user inputs.
Application logic module 2030, in some examples, may be responsible for implementing the primary functions of the social networking application 1070. For example, in the case of a game, the game logic and the game rules are implemented by application logic module 2030. In some examples, application logic module 2030 communicates with application module 1100 using communication module 2040 to communicate changes in application state and user interactions and to receive instructions for processing application events. In other examples, application logic module 2030 has all the logic necessary to process any application state changes and user interactions and to handle application events. In yet other examples, application logic module 2030 has the logic necessary for handling some application state changes, user interactions and application events while the remaining functionality may be handled by application module 1100.
Communication module 2040 communicates with social networking service 1010-1030 and social networking application service 1090. In some examples, this communication may include network communication across network 1040. A variety of methods of communication may be used, including AJAX, page loads, other HTTP communications, TCP sockets, UDP datagrams, and the like.
Social networking application 1070 may include a client authentication module 2010 for managing authentication with one or more social networking services 1010-1030. Client authentication module 2010 works with server authentication module 1100 of social networking application service 1090 to perform authentication and authorization procedures with the various social networks 1010-1030. Authentication and authorization, in some examples, includes user authentication, which provides the identity of the user to the social networking service and the application associated with the social networking service; authorization, in which the user authorizes the social networking application 1070 to access certain personal information and take certain actions; application authentication, which allows the social networking service to verify that a trusted application is asking for access and to provide the requested level of access; and the like. In some examples, authentication and authorization with the social network are necessary to utilize the various APIs of the social networking services 1010-1030. In some examples, when a user launches social networking application 1070, client authentication module 2010 authenticates and authorizes the social networking application 1070 with the host social networking service. The host social networking service may then pass back authentication information. In some examples, this authentication information may be a token key that identifies a session. Client authentication module 2010 then passes this authentication information to server authentication module 1110, which stores this information for later use by other social networking applications, including other social networking applications that are hosted on different social networking services. In general, the authentication information may include any information necessary to utilize an application programming interface on a social networking service.
Server authentication module 1110 of social networking application service 1090 receives this authentication information. Server authentication module 1110 then stores this authentication information in data store 1130. Server authentication module 1090 may then check data store 1130 for any other authentication information relating to that user in other social networks 1010-1030 for the same or other applications. In some cases, the authentication information may be related to a particular application available on multiple different social networks, and in other cases it may be application independent. If any other social networks have valid authentication information, server authentication module 1110 may then send that authentication information to client authentication module 2010 so that social networking application 1070 may utilize the API of other social networks.
Server authentication module 1110 may be responsible for determining if user 1080 has active sessions on social networking services other than the social networking service that is associated with the currently running social networking application 1070. Because different social networks may have different user identification systems, in order to perform this association, server authentication module 1110 may use a variety of factors to associate the user 1080 of social networking application 1070 with authentication and authorization information previously stored in data store 1130. Some factors include member ID, name, social graphs (common friends), address, phone number, email address, TWITTER® account, website links, bank accounts, credit card information, and any other personal identifiable information. In yet other cases, the social networking application 1070 may prompt user 1080 to identify any other user accounts on other social networking services. Once an association is found, the server authentication module 1110 may store this association of user 1080 to the various social networking services for faster processing when looking up authentication information in the future.
For example, if user 1080 is named “John Smith,” his phone number is “555-555-5555,” and he is a member of social networking service A 1010 with member ID “1234” and social networking service B 1020 with member ID “5678” upon launching a social networking application 1070 associated with social networking service A 1010, social networking application 1070 sends the authentication/authorization information to server authentication module 1110 along with identifying information for user 1080. Server authentication module 1110 has no record of any other sessions for user 1080 and does not pass back any sessions to social networking application 1070. Once user 1080 launches another social networking application on social networking service B 1020, which also communicates with social networking application service 1090, the server authentication module 1110 determines (based on items such as name, phone number, and other factors) that user 1080 has member account “1234” on social networking service A 1010 and “5678” on social networking service B 1020. The association may be saved for later use, and the previous session on social networking service A 1010 may be sent to the calling social networking application.
In some examples, social networking application 1070 may include client social networking application programming interface module 2050 (client SNAPI module 2050). Client SNAPI module 2050 frees social networking application 1070 from being specific to one particular social networking service 1010-1030 by providing a standardized API that may then mapped to a variety of disparate social networking API calls. Thus, client SNAPI module 2050 takes as input a social networking service-independent API call from other components of social networking application 1070 and converts those SNAPI calls into social networking service-specific API calls for a variety of social networking services. New social networking services may be added or the API for a social networking service may be modified and the only impacted change would be SNAPI client module 2050 and/or SNAPI server module 1110.
In some examples, the client SNAPI module 2050 converts the SNAPI call into the API format of the host social network. In other examples, the client SNAPI module 2050 may convert the SNAPI call into the API format of multiple social networks, such that SNAPI allows for communication across social networking services 1010-1030. In this way, an application hosted on one social networking service may communicate with, or utilize the APIs of, one or more other social networking services. In some examples, this may allow the social networking application to aggregate information about user 1080 and allow user 1080 access to all of user 1080's connections.
Supporting many social networks 1010-1030 may result in a large amount of code in the client SNAPI module 2050, which may result in large social networking application 1070 load times as well as memory or other performance issues. In some examples, the client SNAPI module 2050 may include a number of translation modules that convert the SNAPI formatted call to one or more social networking service-specific API calls. The translation modules may convert one or more SNAPI calls into one or more API calls for one or more social networking services. In some examples, the client SNAPI module 2050 only loads certain translation modules in order to minimize application size and load times. The particular translation modules to be loaded may be selected based upon a number of factors, including the translation modules selected by the social networking application 1070 or the user 1080, the translation modules necessary to convert SNAPI calls to the host social network API calls, the translation modules necessary to support conversion of the SNAPI calls to the social network API calls of the social networks to which the user has an active session, or any other selection criteria. In this way, the client SNAPI module 2050 may dynamically adjust to provide the SNAPI services while minimizing performance degradation.
In some cases, the social networking application 1070 may be implemented as an IFRAME on the social networking service 1010-1030. In some cases, browser or social networking service restrictions prevent communication by social networking application 1070 to any host besides the server where the social networking application 1070 was originally downloaded, which in some examples would be social networking application service 1090. In these cases, certain calls to social networking services 1010-1030 may be sent from the client SNAPI module 2050 of social networking application 1070 to the server SNAPI module 1120 of social networking application services 1090 in order to work around these restrictions. The server SNAPI module 1120 takes the API call sent by the client SNAPI module 2050, translates it, and issues it to the correct social networking service 1010-1030. The server SNAPI module 1120 also processes any replies from social networking service 1010-1030 and forwards replies to the client SNAPI module 2050. In some cases, the server SNAPI module 1120 and the client SNAPI module 2050 communicate directly through local PHP methods. In some examples, the client SNAPI module 2050 makes a remote request for a SNAPI call by utilizing PHP to perform an HTTP query to a URL associated with the server SNAPI module 1120. The server SNAPI module 1120 recognizes the post, reads the query's parameters and processes the request.
FIG. 3 shows one example method of the present disclosure. At 3010, a user logs onto a social network 1010-1030. Usually, this requires the user to enter certain identification and authentication information. In some examples, this may be a username and a password. At operation 3020, the user selects an application from the social network. In some examples, the application may be a game, a productivity application such as a word processor, a spreadsheet, or messaging application, a marketplace application, a media application, a dating application, and any other application that may be associated with a social networking service. In other examples, the user may visit social networking application service 1090, which may then prompt the user 1080 to login to one of the social networking services 1010-1030 through the use of certain authentication and authorization APIs provided by social networking services 1010-1030.
At operation 3030, the user's browser may be directed by the social networking service to fetch or download an application from an application module 1100 on a social networking application service 1090. In some examples, the application may be displayed in an HTML element. In operation 3040, the application executes on a user's computer or terminal 1050.
Turning now to FIG. 4, at operation 4010, the social networking application client authentication module 2010 authenticates and authorizes with the host social networking service, receiving authentication information in return.
In some examples, this social networking application client authentication module 2010 validates the session information at operation 4020 by ensuring that the authentication information has not expired and is correctly formed. At operation 4030, the authentication information may then be passed to the social network application service server authentication module 1110 in order to store the session information and to signal social networking application service server authentication module 1110 to send to the social networking application client authentication module 2010 the authentication information of other social networks in order to allow API calls to other social networks.
FIG. 5 shows one example server authentication module method. At operation 5010, the server authentication module 1110 validates the authentication information sent by client authentication module 2010. This validation process, in some examples, may be the same or similar to that of client authentication module 2010. Server authentication module 1110 then stores the authentication information in data store 1130. Server authentication module 1110 then checks for any other valid authentication information for other social networks, at operation 5020. If any are found, the server authentication module 1110 may send information regarding that authentication information to client authentication module, at operation 5030, so the client authentication module 2010 may utilize the API of those social networking services.
Turning now to FIG. 6, in some examples the social networking application loads only the parts (i.e. translation modules) of the social networking application client SNAPI module 2050 used to transform the SNAPI calls into the various social networking service 1010-1030 API calls at operation 6010. As already mentioned, in some examples, only those translation modules of client SNAPI module 2050 are loaded that are needed to translate SNAPI calls into native social networking API calls on the various social networking services on which an active session is found. In some examples, client SNAPI code may be a JavaScript or other code module loaded from the social networking application service 1090. In some examples, each translation module of client SNAPI module 2050 handles a specific social networking service 1010-1030; that is, it transforms all SNAPI calls into the corresponding native social networking API calls for one social networking service 1010-1030. In other examples, each translation module may handle translating SNAPI calls into multiple social networking services 1010-1030. In yet other examples, one module may handle a subset of SNAPI calls for a particular social networking service 1010-1030.
In some examples, once the requisite SNAPI translation modules are loaded, the application logic executes in operation 6020. In some examples, if no authentication information is found, no SNAPI translation modules are loaded and the application terminates. In other examples, if no authentication information is found, then the application requests that the host social networking service refresh the session information. In still other examples, the application continues but without certain functionality utilizing the social features of the social networking application.
In operation 6030, the social networking application makes a request for a social networking function. An example social networking function may include requesting that a social network provide a list of a user's social connections. The request may be formatted as a social networking service-independent SNAPI API call. This format may be the same regardless of what social networking service the application is associated with and regardless of which social networking service executes the API call.
In some examples, certain API calls are executed remotely on server SNAPI module 1120 on social networking application service 1090. In some cases, this may be done to avoid browser or other security settings or other restrictions on the social networking application 1070. In other examples, this may be done to speed processing. For example, if social networking application 1070 queries all social networks 1010-1030 for a list of user 1080's connections, sending the queries and waiting for the replies might delay social networking application 1070 unacceptably. In these cases, server SNAPI module 1120 may assist client SNAPI module 2050 in making these API calls.
In operation 6040, in some examples, the client SNAPI module 2050 may determine whether a remote call or a local call may be made. In some examples, the determination may be made based on a predefined list of SNAPI calls that are to be made by client SNAPI module 2050, and a predefined list of SNAPI calls that are to be made by server SNAPI module 1120. In other examples, certain social networking services 1010-1030 are handled locally, while others are handled remotely. In yet other examples, the host social networking service may be handled locally, while others are handled remotely. In yet other examples, the determination of whether the call is remotely or locally executed is determined dynamically. Client SNAPI module 2050 may keep track of the SNAPI calls that are taking a long time to get a response from the social networking service and begin sending those calls to server SNAPI module 1120 so as not to delay execution of the social networking application 1070.
If the call is to be handled locally, in operation 6050, the SNAPI module determines the correct SNAPI translation or code module or modules, and passes the SNAPI call to each appropriate SNAPI translation module. In some examples, there may be multiple SNAPI translation modules that are called. This is because the application may wish to utilize the functionality of multiple social networks. For example, the application may wish to send messages to users who have connections to the user 1080 on different social networking services 1010-1030. Thus, the SNAPI call facilitates sending messages to other users with connections to user 1080 on social networking services 1010-1030.
In operation 6060, once the translation modules are determined for local calls, and the SNAPI calls are passed into them, the SNAPI translation modules utilize the parameters passed into them by the SNAPI call and construct a social network service-particular API call. Thus in some examples, the translation modules construct a FACEBOOK® API call or a LINKEDIN® API call based on the particular formats of their respective APIs. SNAPI client module 2050 then executes the particular API call. In some examples, this may be a JavaScript call. Other example API calls include using Representational State Transfer (RESTful) APIs utilizing, in some examples, HTTP GET, POST, and PUT requests to various URLs of the social networking service, and in other examples the API may be executed via a PHP call, and the like.
If the SNAPI API call is remote, the client SNAPI module 2050 communicates the request to the server SNAPI module 1120 on the social networking application service 1090 at operation 6070. In some examples, the SNAPI module 2050 utilizes AJAX to make an HTTP request to the URL address associated with the social networking application service 1090. Other examples include using a specially designed protocol, FTP, TCP sockets, UDP, Internet Messaging Protocol, Internet Relay Chat, Post Office Protocol, Simple Mail Transfer Protocol, and the like. Any means of communicating the SNAPI request to server SNAPI module 1120 on social networking application service 1090 may be used.
One example method showing how the social networking application service server SNAPI module 1120 handles SNAPI calls is shown in FIG. 7. The call may be made by the SNAPI module 2050 on the social networking application at operation 7010. At operation 7020 the server SNAPI module 1120 receives the SNAPI call. At operation 7030, the server SNAPI module 1120 determines the appropriate SNAPI translation module to translate the SNAPI calls to the specific social networking API calls in a similar manner to the client SNAPI module 2050 on the social networking application. At operation 7040, the translation modules translate the SNAPI calls into social network specific API calls. At operation 7050, the server SNAPI module 1120 on the social networking application service executes the social networking service API calls. In some examples this may be a JavaScript call. Other example API calls include using Representational State Transfer (RESTful) APIs utilizing in some examples: HTTP GET, POST, and PUT requests to various URLs of the social networking service, and in other examples the API may be executed via a PHP call, HTML XML tags, and the like. In operation 7060, the SNAPI module on the social networking application service sends any reply from the social networking service back to the client SNAPI module 2050.
FIG. 8 shows one example client SNAPI module 2050 of a social networking application 1070. SNAPI call 8010 may be passed into the client SNAPI module 2050 and then validated with validator 8020. Validator 8020 validates the parameters of the API call. If the call is invalid, an error may be returned. If the call is valid, then multiplexor 8030 determines which social networks are the targets of the request. The multiplexor selects social networks that are the target of the request based upon a number of factors which may include: the parameters contained in the SNAPI call, the social networks that have session information available, the type of call (e.g., some social networking services may not support all SNAPI calls, or it may not be desirable to call all social networking services capable of such calls), the host social networking service, the presence or absence of social connections on a specific network, a per-user configuration specifying whether to send calls to all networks or just the current host network, user preferences, and the like. In some examples, some social networking service calls will be processed locally by translator 8060. In this case, translator 8060 converts the SNAPI calls into JavaScript API calls 8070 of social network C 1030 and then executes those calls. In other examples, the social networking calls will be made remotely by remote translators 8040. In some examples, remote translators 8040 pass the SNAPI API calls to the social networking application server via PHP at module 8050. White calls to social network C in this example are handled locally, and calls to social networking service A 1010 and B 1020 are handled remotely, in other examples, some calls to social networking service A 1010 and B 1020 may be handled locally depending on the requested functionality, while some calls for social network C 1030 may be handled remotely depending on the requested functionality. For example, some user interface API calls for the various social networks A-C 1010-1030 may be handled locally by local translator 8060, while other API calls relating to say, messaging, may be handled remotely by remote translators 8040. While two translators are shown in FIG. 8 for simplicity, more may be added to support additional SNAPI calls and additional social networking services.
Turning now to FIG. 9, an example server SNAPI module 1120 on the social networking application service 1090 is shown. The SNAPI call from the social networking application 9010 may be multiplexed by the multiplexor 9020 into one or more translators 9030, 9050. In some examples, only translator 9030 will be selected by multiplexor 9020; in other examples, only translator 9050 will be selected. In yet other examples, both 9030 and 9050 will be selected. Each translator 9030, 9050 then translates the particular SNAPI call into a social network-specific API call 9040, 9060. These API calls may then be sent to the desired social networking service 1010-1030 for processing. As with the client SNAPI module 2050, each translator 9030, 9050 may translate SNAPI calls exclusively for a particular social networking service API, a subset of SNAPI calls for a particular API, or SNAPI calls for multiple social networking service APIs. While two translators are shown in FIG. 9 for simplicity, more may be added to support additional SNAPI calls and additional social networking services.
In some examples, SNAPI modules 2050 and 1120 may provide for certain social networking service API functionality. For example, social networking application 1070 may utilize, or wish to utilize, certain API functionality of a particular social networking service that is not provided by other social networking services. In some examples, this functionality may be common for most social networking services, hut not implemented by some other social networking services. In some examples, this functionality includes certain user interface elements. One example is a multi-connection selector. This user interface element displays a box with a list of the social connections (or “friends”) associated with the user of the social networking application. The user may then select a number of these connections to whom they wish to send a message, gift, or other interaction. In FACEBOOK®, this is called a multi-friend selector. Other examples include plates, profile pictures, like buttons, single target request buttons, profile information widgets that display certain sections of a user's profile or certain sections of their connection's profiles, feed widgets that embed a stream of social events and posts pertaining to a specific user or item of interest, and the like. A widget is a module of re-usable code that implements a graphical user interface and optionally receives user input and/or displays data.
In some examples, social networking applications utilize the SNAPI provided functionality by using JavaScript SNAPI calls. In other examples, the application may make use of special HTML or XML tags. In some examples, when client SNAPI module 2050 loads, it replaces the special HTML or XML tags and JavaScript API calls with JavaScript, HTML, XML, or other code that actually implements the provided functionality. In yet other examples, SNAPI module 2050 checks to see if the host social networking service provides such functionality, and instead of replacing the SNAPI call with the SNAPI implementation, it replaces the SNAPI call with the API call of the host social networking service. For example, if the social networking application had an HTML or XML tag that specified the application would like a multi-friend selector to be displayed, and the host social networking service is FACEBOOK®, then SNAPI module 2050 would replace the SNAPI XML tag with a FACEBOOK® Markup Language (FBML) tag to implement the multi-friend selector. In other examples, even on social networking services that implement the various user interface “UI” features, the SNAPI module 2050 may still use the SNAPI implementation to provide a consistent look and feel to applications across social networking services 1010-1030.
FBML is an example of a social networking service implemented custom markup language. FBML allows application developers to access certain FACEBOOK® widgets, dialogs, and user interface elements by inserting FBML markup tags in their HTML or XML content. These tags are then translated by FACEBOOK® to executable code that is then rendered by the user's browser. Other custom markup language tags may also be implemented by other social networking services and may be different in format and capabilities than FBML. In general, a custom markup language extends or alters traditional markup languages such as HTML or XML and comprises a plurality of special markup tags which are translated into other code, tags, or any combination of code and tags which cause a browser or other application to perform certain specific functionality, and in the case of social networking services, this functionality is related to the functions or user interface of the social networking service.
Applications developed using these custom tags can suffer from some of the same platform migration issues that other social networking specific API calls may face. The various custom tags of disparate social networking services may be service-specific and are not likely to be the same. For example, FBML tags are likely to be different than tags developed for LinkedIn, and the like. Thus porting an application written for one social networking service where the application utilizes these tags is difficult and likely involves extensive rewriting of application code. Worse, many social networks do not support custom tags at all, or may not support the entire subset of custom tags. This requires developers to remove the unsupported custom tags from their application and convert them into application source code that directly implements the missing functionality.
In one example, SNAPI modules 2050 may provide a Social Networking Markup Language (“SNML”), which is a social networking platform agnostic custom markup language. SNML may consist of a plurality of defined custom markup language tags that implement a plurality of social networking application functionality. These SNML tags are converted by either the client SNAPI 2050, server SNAPI 1120, or another module (such as a JavaScript application running in browser 1060) prior to displaying on user terminal 1050, into either a social networking service specific markup language (such as FBML—which is then translated into the actual functional code by FACEBOOK®), or translated directly into client code to implement the tag's functionality.
In some examples, if the underlying social networking service provides an equivalent, or near equivalent functionality through use of custom markup tags, the SNML tags may be converted to the custom tags of the underlying social networking service. In some examples this may be desirable so as to preserve the look and feel of the user interface of the underlying social networking service. If the social networking service does not provide equivalent, or near-equivalent functionality through the use of custom tags, then the SNML tags may be replaced with API calls for the social networking service, or HTML, XML, JavaScript, CSS, or other code in order to implement the desired functionality, or some combination of API calls and implementing code.
In other examples, the SNML tags may be replaced with custom functionality which may include HTML, XML, JavaScript, CSS, or the like to implement the desired functionality regardless of whether or not the underlying social networking service provides similar functionality through custom markup tags. One reason may be to provide a consistent UI across all social networking services with which this application is associated. In yet other examples, the SNML tags may be replaced with both social network specific custom markup tags and additional code to implement certain additional functionality or code that modifies the functionality of the social networking specific custom markup tags. For example, certain tags may not implement all the desired features, in which case custom tags may be supplemented by additional functional code.
FIG. 11 shows one example method to interface with multiple social networks by use of SNML. At 11010, the application page is scanned by the SNAPI client module 2050. At 11020, the SNAPI client module 2050 finds any SNML tags that may be in the application page. At 11030, the SNAPI client module 2050 decides how to replace the SNML tags. In some examples, the social network specific tags are inserted, at 11040, in other examples code is inserted, at 11050, to implement the functionality. This code may include API calls or code to actually implement the functionality, or a mix of API calls and implementing code. In some examples a set of one or more criteria may be used to automatically decide how to replace the social network specific markup tags. The criteria may include memory or processor efficiency of the replacement social network specific tags (if any are available) as opposed to the corresponding efficiency of the implementing code, the user interface consistency desired (e.g. whether or not the social networking application's interface should resemble the host social networking service or maintain visual consistency across multiple social networks), the availability of replacement social network specific tags, how close the replacement social network specific tags come to replicating the desired functionality, and the like.
In some examples, this replacement decision may be done on a per-tag basis, that is, each tag may be individually analyzed to determine whether the current social network provides equivalent or near-equivalent functionality in either their own custom markup tags, or through a different API call, and whether or not a social networking service specific look and feel is desired or whether an application specific look and feel is desired. In other examples, the decision is pre-determined—either because the social networking service may not support the desired functionality (e.g. the social network does not have custom markup tags, or equivalent API), or because a consistent user interface might be desired (e.g. the social network may support some but not all functionality and consistency might be preferred).
In some examples, the SNAPI client module 2050 may determine which social networking custom tags (e.g. FBML or the like) or code to replace the SNML tags with by using a table containing replacement tags or replacement code. The table may comprise one or more SNML tags and one or more corresponding replacements for one or more social networking services. The replacement tags or code in the table can include temporary placeholders to indicate the position of arguments within the new code as extracted from the old code. For example, if the SNML tag is <SNML:wall><SNML:wallpost uid=“12345”>“Example wall posting from uid=12345”</SNML:wallpost></SNML:wall>, the table may have an entry like:














SNML
FACEBOOK









<SNML:wall>
<fb:wall><fb:wallpost>



<SNML:wallpost>
uid=%uid>



uid=%uid>
%text</fb:wallpost>



%text</SNML:wallpost>
</fb:wall>



</SNML:wall>










Other social networking services may also be represented in the table such that the SNAPI client module 2050 or other application may match the appropriate replacement code with the appropriate social networking service and the appropriate SNML tag.

If the social networking application is running on the FACEBOOK® social networking service, then the SNML tag is translated to <fb:wall><fb:wallpost uid=“12345”>“Example wall posting from uid=12345”</fb:wallpost></fb:wall>. The variables % uid and % text are read from the SNML tag and may be placed into the FBML tag at the indicated locations. While in this example, the SNML tag was translated into another custom tag, the translation may include custom JavaScript or other code to implement the tag's functionality.
While the SNAPI client module 2050 is utilized in the above-described example embodiment to do the various conversions, it will be appreciated by those skilled in the art that have the benefit of applicant's disclosure that the conversion may be done using various other components. In some examples, a separate JavaScript or other scripting module may be used to do the conversion. In yet other examples, the conversion may be done by SNAPI server module 1120 or some other remote process.
FIG. 12 shows one example SNML system. Client social networking application programming interface module 1070 is shown. Scanning module 12040 scans the social networking application for SNML tags. When an SNML tag is found, decision module 12020 determines the appropriate translation, in some examples, by referring to the replacement table 12040. This decision is then used by the replacement module which replaces the SNML tags with the appropriate code or social networking specific tag.
The following are descriptions of example SNML tags and their various arguments.
snml:name
This tag displays a user's name.














Attribute
Required
Type
Description
Default Value







Uid
No
Integer
The relevant
The active





user's user id 
user


Firstnameonly
No
Boolean
Show only the
False





user's first






name



Lastnameonly
No
Boolean
Show only the
False





user's last






name



Possessive
No
Boolean
Make the
False





user's name






possessive






(e.g. Joe's






instead of Joe)



Reflexive
No
Boolean
Use “yourself” 
False





if useyou is






true



Capitalize
No
Boolean
Capitalize the
False





name



Useyou
No
Boolean
Use “you” if
True





uid matches






the logged in






user



Linked
No
Boolean
The name
False





links to the






user's profile









Example: <snml:name uid=“40000003108” firstnameonly=false possessive=true useyou=true capitalize=true></snml:name>

snml:profile-pic
This tag displays a user's profile picture.














Attribute
Required
Type
Description
Default Value







Uid
No
Integer
The relevant
The active





user's user id
user


Size
No
String
Size of the
Thumb





image:






“thumb”,






“small”,






“normal”,






“square”



Width
No
Integer 
Force the
Base setting





width of the
from size





image



Height
No
Integer
Force the
Base setting





height of the
from size 





image









Example: <snml:profile-pic uid=“4000000832” size=“thumb></snml:profile-pic>

snml:req-choice
This tag represents a button and depends on snml:content.














Attribute
Required
Type
Description
Default Value







url
Yes
String
The url to 
None





which the






button directs



Label
Yes
String
The button 
None





text









Example:

    
    
        <snml:request-form method=“POST” invite=“false” type=“pie”
        width=“600”>
        <snml:multi-friend-selector
        condensed=“true” actiontext=“select friends to ask for pie” max=“5”
        skip_action=“return false;”>
        </snml:multi-friend-selector>
        <snml:content>Say, do you have any pie?<snml:req-choice url=
        ‘http://pieplease.com/’label=‘Send Pie’/></snml:content></snml:request-form>
    
    


snml:single-request
This tag shows a button to submit information to the social network.














Attribute
Required
Type
Description
Default Value







Method
No
String
The HTTP
POST





Method



Invite
No
Boolean
True if this is 
True





an invite, false






if it is a






request



Action
Yes
String
The Submit






URL



Type
Yes
String
The type of






invite or






request









Example: <snml:single-request method=“POST” invite=“false” type=“pid” action=http://pieplease.com/>

snml:serverSnml
Creates a server-blessed markup region for including items like request-form.














Attribute
Required
Type
Description
Default Value







Width
False
String
The width in
null





pixels of the






region.









This tag may be required for snml:request-form to work.

snml:request-form
Creates a form to submit information to the social network.














Attribute
Required
Type
Description
Default Value







Method
No
String 
The HTTP
POST





Method



Invite
No
Boolean
True if this is 
True





an invite, false






if it is a






request



Action
No
String
The Submit
The current





URL
URL


Type
Yes
String
The type of






invite or






request



Width
No
Number
On networks
The width of





that render the
the snml tag's





multi-friend
parent element





selector in an






iframe, this






parameter






constrains the






width of the






iframe









snml:content
This tag is dependent on snml:request-form and determines the content of the message the form sends.
There are no attributes for this tag.
Example:
<snml:request-form method=“POST” invite=“false” type=“pie” width=“600”>
<snml:multi-friend-selector
condensed=“true”
actiontext=“Select friends to ask for pie”
max=“5”
skip_action=“return false;”>
</snml:multi-friend-selector>
<snml:content>Say, do you have any pie?<snml:req-choice
url=http://pieplease.com/’label=‘Send Pie’/></snml:content>
</snml:request-form>
snml:multi-friend-selector
This tag allows a user to select and submit a list of friends in a request form. This may be used inside an snml:request-form.














Attribute
Required
Type
Description
Default Value







actiontext
Yes
string
Message to be
None





displayed at






the top of the






selector



rows
No
integer
Number of
Varies





rows to be






shown.






applicable to






full selector



cols
No
Integer
Number of
Varies





cols to be






shown,






applicable to






full selector



Exclude_ids
No
Comma
A list of social 
None




separated list
networking ids






to exclude






from the






multi-friend






selector



Max
No
integer
Maximum
5





number of






friend






selections



Condensed
No
Boolean
Load the
False





condensed






version of the






selector if true



Button_submit
No
String
Customize the
“send request”





display text on






the submit






button on






certain social






networks



Skip_action
No
String
The URL to
The page the





which the user
MFS submits





is redirected
to





upon hitting






the SKIP






button on






certain social






networking






services



Skip_style
No
String
Style attribute
Default blue





for the skip
skip button





button



data
No
object
A JSON
Get's all the





encoded object
user's friends





containing the
from the





relevant friend
server





objects









Example:

<snml:request-form action=“../submit_action.php” method=“POST” invite=“true” type=“site”>

<snml:multi-friend-selector

condensed=“false”

actiontext=“Select friends”

max=“5”>

</snml“multi-friend-selector>

<snml:content>This site is awesome!<snml:req-choice url=http://www.zynga.com’

label=‘Check it Out!’/></snml:content>

</snml:request-form>

snml:link
Tag that inserts a link,
Example:
<snml:link href=“http://www.zynga.com”>zynga.com</snml:link>
Various Other Notes and Examples
Disclosed in one example is a method for interfacing with multiple social networks. The method may include receiving a call from a social networking service agnostic social networking application for one of a plurality of social networking functions in a first format, translating the call in the first format to a call in a second format, the second format being one of a plurality of heterogeneous social networking service application programming interface formats, the translating done using at least one computer processor. The method may also include passing the call in the second format to a first social networking service by utilizing a first social networking service application programming interface.
Disclosed in another example is a system for interfacing with multiple social networks. The system may include a social networking service agnostic social networking application configured to utilize a plurality of social networking functions, and a translation module implemented on at least one computer processor and configured to: receive a call from the social networking service agnostic social networking application for one of the plurality of social networking functions in a first format; translate the call in a first format to a call in a second format, the second format being one of a plurality of heterogeneous social networking service application programming interface formats; and pass the call in the second format to a first social networking service by utilizing a first social networking service application programming interface.
Disclosed in yet another example is a machine readable storage medium that stores instructions which when performed by a machine, cause the machine to perform various operations. These operations may include receiving a call from a social networking service agnostic social networking application for one of a plurality of social networking functions in a first format, translating the call in the first format to a call in a second format, the second format being one of a plurality of heterogeneous social networking service application programming interface formats, and passing the call in the second format to a first social networking service by utilizing a first social networking service application programming interface.
Disclosed in one example is a method for interfacing with multiple social networks. In some examples the method may include scanning a social networking application for a custom markup language tag in a first custom markup language. The method may also include determining, based on one or more criteria, whether the custom markup language tag should be replaced with either a custom markup language tag in a second custom markup language or replaced with one or more source code commands, the custom markup language tag in the second language or the one or more source code commands to implement a desired functionality of the custom markup language tag in the first language. In yet other examples, the method may include replacing the custom markup language tag in the first custom markup language with either the custom markup language tag in the second language or with the one or more source code commands based upon the determination.
Disclosed in one example is a system for interfacing with multiple social networks. In some examples, the system may include a scanning module configured for scanning a social networking application for a custom markup language tag in a first custom markup language. In other examples, the system may include a decision module configured for determining, based on one or more criteria, whether the custom markup language tag should be replaced with either a custom markup language tag in a second custom markup language or replaced with one or more source code commands, the custom markup language tag in the second language or the one or more source code commands to implement a desired functionality of the custom markup language tag in the first language. In yet other examples, the system may include a replacement module configured to replace the custom markup language tag in the first custom markup language with either the custom markup language tag in the second language or with the one or more source code commands based upon the determination of the decision module, the replacement module operating on one or more computer processors.
Disclosed in yet another example is a machine readable medium that stores instructions which when performed by a machine, cause the machine to perform certain operations. In some examples the operations include scanning a social networking application for a custom markup language tag in a first custom markup language, determining, based on one or more criteria, whether the custom markup language tag should be replaced with either a custom markup language tag in a second custom markup language or replaced with one or more source code commands, the custom markup language tag in the second language or the one or more source code commands to implement a desired functionality of the custom markup language tag in the first language, and based upon the determination, replacing the custom markup language tag in the first custom markup language with either the custom markup language tag in the second language or with the one or more source code commands.
These examples may be combined in any permutation or combination. This overview is intended to provide an overview of subject matter of the present patent application. It is not intended to provide an exclusive or exhaustive explanation of the invention. The detailed description is included to provide further information about the present patent application.
Modules, Components, and Logic
Certain embodiments are described herein as including logic or a number of components, modules, or mechanisms. Modules may constitute either software modules (e.g., code embodied (1) on a non-transitory machine-readable medium or (2) in a transmission signal) or hardware-implemented modules. A hardware-implemented module is tangible unit capable of performing certain operations and may be configured or arranged in a certain manner. In example embodiments, one or more computer systems (e.g., a standalone, client or server computer system) or one or more processors may be configured by software an application or application portion) as a hardware-implemented module that operates to perform certain operations as described herein.
In various embodiments, a hardware-implemented module may be implemented mechanically or electronically. For example, a hardware-implemented module may comprise dedicated circuitry or logic that is permanently configured (e.g., as a special-purpose processor, such as a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC)) to perform certain operations. A hardware-implemented module may also comprise programmable logic or circuitry (e.g., as encompassed within a general-purpose processor or other programmable processor) that is temporarily configured by software to perform certain operations, it will be appreciated that the decision to implement a hardware-implemented module mechanically, in dedicated and permanently configured circuitry, or in temporarily configured circuitry (e.g., configured by software) may be driven by cost and time considerations.
Accordingly, the term “hardware-implemented module” should be understood to encompass a tangible entity, be that an entity that is physically constructed, permanently configured (e.g., hardwired) or temporarily or transitorily configured (e.g., programmed) to operate in a certain manner and/or to perform certain operations described herein. Considering embodiments in which hardware-implemented modules are temporarily configured (e.g., programmed), each of the hardware-implemented modules need not be configured or instantiated at any one instance in time. For example, where the hardware-implemented modules comprise a general-purpose processor configured using software, the general-purpose processor may be configured as respective different hardware-implemented modules at different times. Software may accordingly configure a processor, for example, to constitute a particular hardware-implemented module at one instance of time and to constitute a different hardware-implemented module at a different instance of time.
Hardware-implemented modules may provide information to, and receive information from, other hardware-implemented modules. Accordingly, the described hardware-implemented modules may be regarded as being communicatively coupled. Where multiple of such hardware-implemented modules exist contemporaneously, communications may be achieved through signal transmission (e.g., over appropriate circuits and buses) that connect the hardware-implemented modules. In embodiments in which multiple hardware-implemented modules are configured or instantiated at different times, communications between such hardware-implemented modules may be achieved, for example, through the storage and retrieval of information in memory structures to which the multiple hardware-implemented modules have access. For example, one hardware-implemented module may perform an operation, and store the output of that operation in a memory device to which it is communicatively coupled. A further hardware-implemented module may then, at a later time, access the memory device to retrieve and process the stored output. Hardware-implemented modules may also initiate communications with input or output devices, and may operate on a resource (e.g., a collection of information).
The various operations of example methods described herein may be performed, at least partially, by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform the relevant operations. Whether temporarily or permanently configured, such processors may constitute processor-implemented modules that operate to perform one or more operations or functions. The modules referred to herein may, in some example embodiments, comprise processor-implemented modules.
Similarly, the methods described herein may be at least partially processor-implemented. For example, at least some of the operations of a method may be performed by one or processors or processor-implemented modules. The performance of certain of the operations may be distributed among the one or more processors, not only residing within a single machine, but deployed across a number of machines. In some example embodiments, the processor or processors may be located in a single location (e.g., within a home environment, an office environment or as a server farm), while in other embodiments the processors may be distributed across a number of locations.
The one or more processors may also operate to support performance of the relevant operations in a “cloud computing” environment or as a “software as a service” (SaaS). For example, at least some of the operations may be performed by a group of computers (as examples of machines including processors), these operations being accessible via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., Application Program Interfaces (APIs).)
Electronic Apparatus and System
Example embodiments may be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Example embodiments may be implemented using a computer program product, e.g., a computer program tangibly embodied in an information carrier, e.g., in a machine-readable medium for execution by, or to control the operation of data processing apparatus, e.g., a programmable processor, a computer, or multiple computers.
A computer program may be written in any form of programming language, including compiled or interpreted languages, and it may be deployed in any form, including as a stand-alone program or as a module, subroutine, or other unit suitable for use in a computing environment. A computer program may be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network.
In example embodiments, operations may be performed by one or more programmable processors executing a computer program to perform functions by operating on input data and generating output. Method operations may also be performed by, and apparatus of example embodiments may be implemented as, special purpose logic circuitry, e.g., a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC).
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In embodiments deploying a programmable computing system, it will be appreciated that that both hardware and software architectures require consideration. Specifically, it will be appreciated that the choice of whether to implement certain functionality in permanently configured hardware (e.g., an ASIC), in temporarily configured hardware a combination of software and a programmable processor), or a combination of permanently and temporarily configured hardware may be a design choice. Below are set out hardware (e.g., machine) and software architectures that may be deployed, in various example embodiments.
Example Machine Implementation
FIG. 10 shows a diagrammatic representation of a machine in the example form of a computer system 10000 within which a set of instructions for causing the machine to perform any one or more of the methods, processes, operations, or methodologies discussed herein may be executed. In alternative embodiments, the machine operates as a standalone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine may operate in the capacity of a server or a client machine in server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine may be a Personal Computer (PC), a tablet PC, a Set-Top Box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a Web appliance, a network router, switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein. Example embodiments may also be practiced in distributed system environments where local and remote computer systems which that are linked (e.g., either by hardwired, wireless, or a combination of hardwired and wireless connections) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory-storage devices (see below).
The example computer system 10000 includes a processor 10002 (e.g., a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or both), a main memory 10001 and a static memory 10006, which communicate with each other via a bus 10008. The computer system 10000 may further include a video display unit 10010 (e.g., a Liquid Crystal Display (LCD) or a Cathode Ray Tube (CRT)). The computer system 10000 may also include an alphanumeric input device 10012 (e.g., a keyboard), a User Interface (UI) cursor controller 10014 (e.g., a mouse), a disk drive unit 10016, a signal generation device 10018 (e.g., a speaker) and a network interface device 10020 (e.g., a transmitter). In other examples, the machine may include a touch-sensitive display.
The disk drive unit 10016 includes a machine-readable medium 10022 on which is stored one or more sets of instructions 10024 and data structures software) embodying or used by any one or more of the methodologies or functions illustrated herein. The software may also reside, completely or at least partially, within the main memory 10001 and/or within the processor 10002 during execution thereof by the computer system 10000, the main memory 10001 and the processor 10002 also constituting machine-readable media.
The instructions 10024 may further be transmitted or received over a network 10026 via the network interface device 10020 using any one of a number of well-known transfer protocols (e.g., HTTP, Session Initiation Protocol (SIP)).
The term “machine-readable medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of instructions. The term “machine-readable medium” shall also be taken to include any medium that is capable of storing, encoding, or carrying a set of instructions for execution by the machine and that cause the machine to perform any of the one or more of the methodologies illustrated herein. The term “machine-readable medium” shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media.
Method embodiments illustrated herein may be computer-implemented. Some embodiments may include computer-readable media encoded with a computer program (e.g., software), which includes instructions operable to cause an electronic device to perform methods of various embodiments. A software implementation (or computer-implemented method) may include microcode, assembly language code, or a higher-level language code, which further may include computer readable instructions for performing various methods. The code may form portions of computer program products. Further, the code may be tangibly stored on one or more volatile or non-volatile computer-readable media during execution or at other times. These computer-readable media may include, but are not limited to, hard disks, removable magnetic disks, removable optical disks (e.g., compact disks and digital video disks), magnetic cassettes, memory cards or sticks, Random Access Memories (RAMs), Read Only Memories (ROMs), and the like.
Additional Notes
The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are also referred to herein as “examples.” Such examples may include elements in addition to those shown or described. However, the present inventors also contemplate examples in which only those elements shown or described are provided. Moreover, the present inventors also contemplate examples using any combination or permutation of those elements shown or described (or one or more aspects thereof), either with respect to a particular example (or one or more aspects thereof), or with respect to other examples or one or more aspects thereof) shown or described herein.
All publications, patents, and patent documents referred to in this document are incorporated by reference herein in their entirety, as though individually incorporated by reference. In the event of inconsistent usages between this document and those documents so incorporated by reference, the usage in the incorporated reference(s) should be considered supplementary to that of this document; for irreconcilable inconsistencies, the usage in this document controls.
In this document, the terms “a” or “an” are used, as is common in patent documents, to include one or more than one, independent of any other instances or usages of “at least one” or “one or more.” In this document, the term “or” is used to refer to a nonexclusive or, such that “A or B” includes “A but not B,” “B but not A,” and “A and B,” unless otherwise indicated. In this document, the terms “including” and “in which” are used as the plain-English equivalents of the respective terms “comprising” and “wherein.” Also, in the following claims, the terms “including” and “comprising” are open-ended, that is, a system, device, article, or process that includes elements in addition to those listed after such a term in a claim are still deemed to fall within the scope of that claim. Moreover, in the following claims, the terms “first,” “second,” and “third,” etc. are used merely as labels, and are not intended to impose numerical requirements on their objects.
Method examples described herein may be machine or computer-implemented at least in part. Some examples may include a computer-readable medium or machine-readable medium encoded with instructions operable to configure an electronic device to perform methods as described in the above examples. An implementation of such methods may include code, such as microcode, assembly language code, a higher-level language code, or the like. Such code may include computer readable instructions for performing various methods. The code may form portions of computer program products. Further, in an example, the code may be tangibly stored on one or more volatile, non-transitory, or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to, hard disks, removable magnetic disks, removable optical disks (e.g., compact disks and digital video disks), magnetic cassettes, memory cards or sticks, random access memories (RAMs), read only memories (ROMs), and the like.
The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with each other. Other embodiments may be used, such as by one of ordinary skill in the art upon reviewing the above description.
The Abstract is provided to comply with 37 C.F.R. §1.72(b), to allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims.
Also, in the above Detailed Description, various features may be grouped together to streamline the disclosure. This should not be interpreted as intending that an unclaimed disclosed feature is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment.
Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment, and it is contemplated that such embodiments may be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

## Claims

1. A method for interfacing with multiple social networks, the method comprising:
determining a social networking service that a social networking application is associated with;
locating in the social networking application a custom markup language tag, the custom markup language tag written in a first custom markup language, the custom markup language tag specifying an instruction to implement a particular functionality;
determining that the custom markup language tag should be replaced either with a set of one or more source code commands, or with a second custom markup language tag defined by the social networking service, and written in a second custom markup, language, the determination based upon the determined social networking service and one or more criteria, the second custom markup language tag and the set of source code commands both containing instructions, which when executed, implement the particular functionality of the custom markup language tag in the first language;
responsive to a determination that the custom markup language tag should be replaced with the set of source code commands, replacing the custom markup language tag with the set of source code commands, the set of source code commands being a source code language that is not a markup language; and
responsive to a determination that the custom markup language tag should be replaced with the second custom markup language tag, replacing the custom markup language tag with the second custom markup language tag, using one or more computer processors.

2. The method of claim 1, wherein the one or more criteria includes at least one of computational efficiency, user interface consistency, and the availability of the custom markup language tag from the second custom markup language.

3. The method of claim 1, wherein determining that the custom markup language tag should be replaced comprises:
determining, from a replacement table, whether one or both of the set of source code commands and the second custom markup language tag are listed as corresponding to the custom markup language tag, and using the correspondence information as one of the criteria, wherein the replacement table comprises:
a list of custom markup language tags in the first custom markup language;
for each of the tags in the list, for each supported social networking service, one of: corresponding tags in a custom markup language specific to the social networking service and corresponding sets of source code commands.

4. The method of claim 3, wherein the replacement table also comprises a location of a parameter associated with the custom markup language tag in the first custom markup language and one of: a first replacement location of the parameter in the custom markup language tag in the second custom markup language and a second replacement location of the parameter in the set of one or more source code commands, and wherein replacing the custom markup language tag with the set of source commands comprises placing the parameter in the set of one or more source code commands at the second replacement location, and wherein replacing the custom markup language tag with the second custom markup language tag comprises placing the parameter in the second custom markup language tag at the first replacement location.

5. The method of claim 1, further comprising:
locating in the social networking application a third custom markup language tag in the first custom markup language, the third custom markup language tag specifying an instruction to implement a second particular functionality;
determining that the third custom markup language tag should be replaced either with a fourth custom markup language tag in the second language, or with a second set of one or more source code commands based upon the determined social networking service and based upon the one or more criteria, the fourth custom markup language tag and the second set of source code commands, both containing instructions, which when executed implement the second particular functionality of the third custom markup language tag;
responsive to a determination that the custom markup language tag should be replaced with the set of source commands, replacing the third custom markup language tag with the second set of source code commands, the second set of source code commands being a source code language that is not a markup language;
responsive to a determination that the third custom markup language tag should be replaced with the fourth custom markup language tag, replacing the third custom markup language tag with the fourth custom markup language tag.

6. The method of claim 5, wherein determining that the third custom markup language tag should be replaced comprises determining that the third custom markup language tag should be replaced with the fourth custom markup language tag if the custom markup language tag was replaced with the second custom markup language tag.

7. The method of claim 5, wherein determining that the third custom markup language tag should be replaced comprises determining that the third custom markup language tag should be replaced with the second set of source code commands if the custom markup language tag was replaced with the second custom markup language tag.

8. A system to interface with multiple social networks, the system comprising:
one or more computer processors configured to execute:
a scanning module configured to:
determine a social networking service that a social networking application is associated with; and
locate in the social networking application a custom markup language tag, the custom markup language tag written in a first custom markup language, the custom markup language tag specifying an instruction to implement a particular functionality;

a decision module configured to determine that the custom markup language tag should be replaced either with a set of one or more source code commands, or with a second custom markup language tag defined by the social networking service, and written in a second custom markup language, the determination based upon the determined social networking service and one or more criteria, the second custom markup language tag and the set of source code commands both containing instructions, which when executed, implement the particular functionality of the custom markup language tag in the first language; and
a replacement module configured to:
replace the custom markup language tag in the first custom markup language with the set of source code commands based upon a determination of the decision module that the custom markup language tag should be replaced with the set of source code commands; and
replace the custom markup language tag in the first custom markup language with the second custom markup language tag based upon a determination of the decision module that the custom markup language tag should be replaced with the second custom markup language tag.

9. The system of claim 8, wherein the one or more criteria includes at least one of computational efficiency, user interface consistency, and the availability of the custom markup language tag from the second custom markup language.

10. The system of claim 8, wherein the decision module configured to determine that the custom markup language tag should be replaced includes determining, from a replacement table, whether one or both of the set of source code commands and the second custom markup language tag are listed as corresponding to the custom markup language tag, and using the correspondence information as one of the criteria, wherein the replacement table comprises:
a list of custom markup language tags in the first custom markup language; and
for each of the tags in the list, for each supported social networking service, one of corresponding tags in a custom markup language specific to the social networking service and corresponding sets of source code commands.

11. The system of claim 10, wherein the replacement table also comprises a location parameter associated with the custom markup language tag in the first custom markup language and at least one of: a first replacement location of the parameter in the custom markup language tag in the second custom markup language and a second replacement location of the parameter in the set of one or more source code commands, and wherein the replacement module is configured to replace the custom markup language tag with the set of source commands by at least utilizing the second replacement location to place the parameter in the set of one or more source code commands, and wherein the replacement module is configured to replace the custom markup language tag with the second custom markup language tag at the first replacement location.

12. The system of claim 8, wherein:
the scanning module is further configured to locate in the social networking application a third custom markup language tag in the first custom markup language, the third custom markup language tag specifying an instruction to implement a second particular functionality;
the decision module is further configured to determine that the second custom markup language tag should be replaced either with a fourth custom markup language tag in the second language or replaced with a second set of one or more second source code commands based upon the determined social networking service and based upon the one or more criteria, the fourth custom markup language tag and the second set of source code commands, both containing instructions, which when executed implement the second particular functionality of the third custom markup language tag; and
the replacement module is further configured to:
replace the third custom markup language tag in the first custom markup language with the second set of source code commands based upon a determination of the decision module that the third custom markup language tag should be replaced with the second set of source code commands; and
replace the third custom markup language tag in the first custom markup language with the fourth custom markup language tag based upon a determination of the decision module that the third custom markup language tag should be replaced with the fourth custom markup language tag.

13. The system of claim 12, wherein if the custom markup language tag is replaced with the second custom markup language tag, then the decision module is configured to determine that the third custom markup language tag should be replaced with the fourth custom markup language tag.

14. The system of claim 12, wherein if the custom markup language tag is replaced with the second custom markup language tag then the decision module is configured to determine that the third custom markup language tag should be replaced with the second set of source commands.

15. A non-transitory machine readable medium that stores instructions which when performed by a machine, cause the machine to perform operations comprising:
determining a social networking service that a social networking application is associated with;
locating in the social networking application a custom markup language tag, the custom markup language tag written in a first custom markup language, the custom markup language tag specifying an instruction to implement a particular functionality;
determining that the custom markup language tag should be replaced either with a set of one or more source code commands, or with a second custom markup language tag defined by the social networking service, and written in a second custom markup language, the determination based upon the determined social networking service and one or more criteria, the second custom markup language tag and the set of source code commands both containing instructions, which when executed, implement the particular functionality of the custom markup language tag in the first language;
responsive to a determination that the custom markup language tag should be replaced with the set of source code commands, replacing the custom markup language tag with the set of source code commands, the set of source code commands being a source code language that is not a markup language; and
responsive to a determination that the custom markup language tag should be replaced with the second custom markup language tag, replacing the custom markup language tag with the second custom markup language tag.

16. The machine readable medium of claim 15, wherein the one or more criteria includes at least one of computational efficiency, user interface consistency, and the availability of the custom markup language tag from the second custom markup language.

17. The machine readable medium of claim 15, wherein
wherein the instructions for determining that the custom markup language tag should be replaced comprises instructions, which, when performed by the machine, causes the machine to perform the operations of determining, from a replacement table, whether one or both of the set of source code commands and the second custom markup language tag are listed as corresponding to the custom markup language tag, and using the indication as one of the criteria, wherein the replacement table comprises:
a list of custom markup language tags in the first custom markup language; and
for each of the tags in the list, for each supported social networking service, one of corresponding tags in a custom markup language specific to the social networking service and corresponding sets of source code commands.

18. The machine readable medium of claim 17,
wherein the replacement table also comprises a location of a parameter associated with the custom markup language tag in the first custom markup language and one of: a first replacement location of the parameter in the custom markup language tag in the second custom markup language and a second replacement location of the parameter in the set of one or more source code commands, and wherein the instructions for replacing the custom markup language tag with the set of source commands comprises instructions for placing the parameter in the set of one or more source code commands at the second replacement location, and wherein the instructions for replacing the custom markup language tag with the second custom markup language tag comprises instructions for placing the parameter in the second custom markup language tag at the first replacement location.

19. The machine readable medium of claim 15, wherein the instructions further comprise instructions, which when performed by the machine, cause the machine to perform the operations further comprising:
locating in the social networking application a third custom markup language tag in the first custom markup language, the third custom markup language tag specifying an instruction to implement a second particular functionality;
determining that the third custom markup language tag should be replaced either with a fourth custom markup language tag in the second language, or with a second set of one or more source code commands based upon the determined social networking service and based upon the one or more criteria, the fourth custom markup language tag and the second set of source code commands, both containing instructions, which when executed implement the second particular functionality of the third custom markup language tag;
responsive to a determination that the custom markup language tag should be replaced with the set of source commands, replacing the third custom markup language tag with the second set of source code commands, the second set of source code commands being a source code language that is not a markup language; and
responsive to a determination that the third custom markup language tag should be replaced with the fourth custom markup language tag, replacing the third custom markup language tag with the fourth custom markup language tag.

20. The machine readable medium of claim 19, wherein the instructions for determining that the third custom markup language tag should be translated comprises instructions for determining that the third custom markup language tag should be replaced with the fourth custom markup language tag if the custom markup language tag was replaced with the second custom markup language tag.

21. The machine readable medium of claim 19,
wherein the instructions for determining that the third custom markup language tag should be replaced comprises instructions for determining that the third custom markup language tag should be replaced with the second set of source code commands if the custom markup language tag was replaced with the second custom markup language tag.