CLAIM OF PRIORITYThis application is a continuation of and claims the benefit of priority under 35 U.S.C. §120 to U.S. patent application Ser. No. 13/077,394, filed on Mar. 31, 2011, which is hereby incorporated by reference herein in its entirety.
COPYRIGHT NOTICEA 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.
BACKGROUNDA 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 DRAWINGSFIG. 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.
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 DESCRIPTIONThe 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> |
| <person path=‘/people/~’/> |
| <person path=“/people/janedoe” /> |
| </recipients> |
| <subject>Hello - Sample Message.</subject> |
| <body>Hello World!</body> |
On the other hand, to post a message to another user on FACEBOOK®, developers utilze a JavaScript call according to a particular format. One example is:
| method: ‘feed’, |
| name: ‘Facebook Dialogs’, |
| link: ‘http://someurl.com’, |
| picture: ‘http://somepictureurl.jpg’, |
| caption: ‘Hello-Sample Message’, |
| description: ‘Hello - Sample Message’, |
| message: ‘Hello World!’ |
| if (response && response.post_id) { |
| alert(‘Post was published.’); |
| 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, Perl calls, AJAX calls, and any other means for accessing an API.
FIG. 1 shows oneexample system1000. Typically, a user, such asuser1080, will access and communicate with one or more social networking services1010-1030 throughnetwork1040. In some examples, social networking services1010-1030 may include FACEBOOK®, MYSPACE®, LINKEDIN®, TWITTER®, and the like. In some examples, this communication may be done through theuser terminal1050.User terminal1050, 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 aninternet browser1060 of theuser terminal1050 may be used to access the social networking services1010-1030 usingnetwork1040.Internet browser1060, in some examples may include Internet Explorer® from Microsoft Corp., Redmond, Wash.Network1040 may be any method by whichuser terminal1050 may communicate with one or more social networking services1010-1030. In some examples,network1040 may include the internet, a wide area network “WAN”, a local area network “LAN”, cellular network, or any other method of allowing theuser terminal1050 to connect with the social networking service, and the like. While three social networking services are shown inFIG. 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 auser1080 accesses a third party application (such as a game) associated with one of the social networking services1010-1030, theuser1080 selects the application via the social networking service1010-1030, which then re-directs the user to access the application on another server. In some examples, this server may be located on a socialnetworking application service1090. The user's browser connects to the application server, downloads the application client, then displays or executes the application. In some examples, thissocial networking application1070 may be or include HTML, XML, JavaScript, Adobe Flash, Microsoft Silverlight, and the like. The social network1010-1030 from which the user selected the content may be called the host social network. The user's browser then executes or displays thissocial networking application1070 until theuser1080 decides to exit, or the application closes or otherwise ends.
In some examples, while theapplication1070 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 user1080 (such as connections with other users), sending messages to other users, and the like.
In some examples,social networking application1070 may communicate with socialnetworking application service1090. Socialnetworking application service1090 may include various functions to assistsocial networking application1070. In some examples, socialnetworking application service1090 may includeapplication module1100, which stores and delivers to user terminals (including user terminal1050)social networking application1070 fromdata store1130. In other examples,application module1100 may contain execution logic forsocial networking application1070. 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 theapplication1070; sending messages to and from various other users of the application; storing application data indata store1130; providing various media files such as graphics, video, and sound files; and the like. While socialnetworking application service1090 is shown inFIG. 1 as one system, the components and the functionality of socialnetworking application service1090 may be distributed across multiple systems.
In some examples, socialnetworking application service1090 includes aserver authentication module1110, which works with client authentication module2010 (FIG. 2) to authenticate or authorizesocial networking application1070 with a variety of social networking services1010-1030.
In some examples, socialnetworking application service1090 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) onsocial networking application1070 in implementing the SNAPI.Server SNAPI1120 andclient SNAPI2050 will be discussed in more detail later.
One examplesocial networking application1070 is shown inFIG. 2. Asocial networking application1070 is any application which utilizes, or is capable of utilizing, the API of one or more social networking services. In some examplessocial networking application1070 may contain an input/output module2020. Input/output module2020 communicates with theuser1080, throughuser terminal1050. Input/output module2020 may be responsible for causing the user interface of thesocial networking application1070 to be displayed and for handling user inputs.
Application logic module2030, in some examples, may be responsible for implementing the primary functions of thesocial networking application1070. For example, in the case of a game, the game logic and the game rules are implemented byapplication logic module2030. In some examples,application logic module2030 communicates withapplication module1100 usingcommunication module2040 to communicate changes in application state and user interactions and to receive instructions for processing application events. In other examples,application logic module2030 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 module2030 has the logic necessary for handling some application state changes, user interactions and application events while the remaining functionality may be handled byapplication module1100.
Communication module2040 communicates with social networking service1010-1030 and socialnetworking application service1090. In some examples, this communication may include network communication acrossnetwork1040. 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 application1070 may include aclient authentication module2010 for managing authentication with one or more social networking services1010-1030.Client authentication module2010 works withserver authentication module1110 of socialnetworking application service1090 to perform authentication and authorization procedures with the various social networks1010-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 thesocial networking application1070 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 services1010-1030. In some examples, when a user launchessocial networking application1070,client authentication module2010 authenticates and authorizes thesocial networking application1070 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 module2010 then passes this authentication information toserver authentication module1110, 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 module1110 of socialnetworking application service1090 receives this authentication information.Server authentication module1110 then stores this authentication information indata store1130.Server authentication module1090 may then checkdata store1130 for any other authentication information relating to that user in other social networks1010-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 module1110 may then send that authentication information toclient authentication module2010 so thatsocial networking application1070 may utilize the API of other social networks.
Server authentication module1110 may be responsible for determining ifuser1080 has active sessions on social networking services other than the social networking service that is associated with the currently runningsocial networking application1070. Because different social networks may have different user identification systems, in order to perform this association,server authentication module1110 may use a variety of factors to associate theuser1080 ofsocial networking application1070 with authentication and authorization information previously stored indata store1130. 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, thesocial networking application1070 may promptuser1080 to identify any other user accounts on other social networking services. Once an association is found, theserver authentication module1110 may store this association ofuser1080 to the various social networking services for faster processing when looking up authentication information in the future.
For example, ifuser1080 is named “John Smith,” his phone number is “555-555-5555,” and he is a member of socialnetworking service A1010 with member ID “1234” and socialnetworking service B1020 with member ID “5678” upon launching asocial networking application1070 associated with socialnetworking service A1010,social networking application1070 sends the authentication/authorization information toserver authentication module1110 along with identifying information foruser1080.Server authentication module1110 has no record of any other sessions foruser1080 and does not pass back any sessions tosocial networking application1070. Onceuser1080 launches another social networking application on socialnetworking service B1020, which also communicates with socialnetworking application service1090, theserver authentication module1110 determines (based on items such as name, phone number, and other factors) thatuser1080 has member account “1234” on socialnetworking service A1010 and “5678” on socialnetworking service B1020. The association may be saved for later use, and the previous session on socialnetworking service A1010 may be sent to the calling social networking application.
In some examples,social networking application1070 may include client social networking application programming interface module2050 (client SNAPI module2050).Client SNAPI module2050 freessocial networking application1070 from being specific to one particular social networking service1010-1030 by providing a standardized API that may then mapped to a variety of disparate social networking API calls. Thus,client SNAPI module2050 takes as input a social networking service-independent API call from other components ofsocial networking application1070 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 beclient SNAPI module2050 and/orserver SNAPI module1120.
In some examples, theclient SNAPI module2050 converts the SNAPI call into the API format of the host social network. In other examples, theclient SNAPI module2050 may convert the SNAPI call into the API format of multiple social networks, such that SNAPI allows for communication across social networking services1010-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 aboutuser1080 and allowuser1080 access to all ofuser1080's connections.
Supporting many social networks1010-1030 may result in a large amount of code in theclient SNAPI module2050, which may result in largesocial networking application1070 load times as well as memory or other performance issues. In some examples, theclient SNAPI module2050 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, theclient SNAPI module2050 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 thesocial networking application1070 or theuser1080, 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, theclient SNAPI module2050 may dynamically adjust to provide the SNAPI services while minimizing performance degradation.
In some cases, thesocial networking application1070 may be implemented as an IFRAME on the social networking service1010-1030. In some cases, browser or social networking service restrictions prevent communication bysocial networking application1070 to any host besides the server where thesocial networking application1070 was originally downloaded, which in some examples would be socialnetworking application service1090. In these cases, certain calls to social networking services1010-1030 may be sent from theclient SNAPI module2050 ofsocial networking application1070 to theserver SNAPI module1120 of socialnetworking application services1090 in order to work around these restrictions. Theserver SNAPI module1120 takes the API call sent by theclient SNAPI module2050, translates it, and issues it to the correct social networking service1010-1030. Theserver SNAPI module1120 also processes any replies from social networking service1010-1030 and forwards replies to theclient SNAPI module2050. In some cases, theserver SNAPI module1120 and theclient SNAPI module2050 communicate directly through local PHP methods. In some examples, theclient SNAPI module2050 makes a remote request for a SNAPI call by utilizing PHP to perform an HTTP query to a URL associated with theserver SNAPI module1120. Theserver SNAPI module1120 recognizes the post, reads the query's parameters and processes the request.
FIG. 3 shows one example method of the present disclosure. At3010, a user logs onto a social network1010-1030. Usually, this requires the user to enter certain identification and authentication information. In some examples, this may be a username and a password. Atoperation3020, 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 socialnetworking application service1090, which may then prompt theuser1080 to login to one of the social networking services1010-1030 through the use of certain authentication and authorization APIs provided by social networking services1010-1030.
Atoperation3030, the user's browser may be directed by the social networking service to fetch or download an application from anapplication module1100 on a socialnetworking application service1090. In some examples, the application may be displayed in an IFRAME HTML element. Inoperation3040, the application executes on a user's computer or terminal1050.
Turning now toFIG. 4, atoperation4010, the social networking applicationclient authentication module2010 authenticates and authorizes with the host social networking service, receiving authentication information in return.
In some examples, this social networking applicationclient authentication module2010 validates the session information atoperation4020 by ensuring that the authentication information has not expired and is correctly formed. Atoperation4030, the authentication information may then be passed to the social network application serviceserver authentication module1110 in order to store the session information and to signal social networking application serviceserver authentication module1110 to send to the social networking applicationclient authentication module2010 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. Atoperation5010, theserver authentication module1110 validates the authentication information sent byclient authentication module2010. This validation process, in some examples, may be the same or similar to that ofclient authentication module2010.Server authentication module1110 then stores the authentication information indata store1130.Server authentication module1110 then checks for any other valid authentication information for other social networks, atoperation5020. If any are found, theserver authentication module1110 may send information regarding that authentication information to client authentication module, atoperation5030, so theclient authentication module2010 may utilize the API of those social networking services.
Turning now toFIG. 6, in some examples the social networking application loads only the parts (i.e. translation modules) of the social networking applicationclient SNAPI module2050 used to transform the SNAPI calls into the various social networking service1010-1030 API calls atoperation6010. As already mentioned, in some examples, only those translation modules ofclient SNAPI module2050 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 socialnetworking application service1090. In some examples, each translation module ofclient SNAPI module2050 handles a specific social networking service1010-1030; that is, it transforms all SNAPI calls into the corresponding native social networking API calls for one social networking service1010-1030. In other examples, each translation module may handle translating SNAPI calls into multiple social networking services1010-1030. In yet other examples, one module may handle a subset of SNAPI calls for a particular social networking service1010-1030.
In some examples, once the requisite SNAPI translation modules are loaded, the application logic executes inoperation6020. 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.
Inoperation6030, 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 onserver SNAPI module1120 on socialnetworking application service1090. In some cases, this may be done to avoid browser or other security settings or other restrictions on thesocial networking application1070. In other examples, this may be done to speed processing. For example, ifsocial networking application1070 queries all social networks1010-1030 for a list ofuser1080's connections, sending the queries and waiting for the replies might delaysocial networking application1070 unacceptably. In these cases,server SNAPI module1120 may assistclient SNAPI module2050 in making these API calls.
Inoperation6040, in some examples, theclient SNAPI module2050 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 byclient SNAPI module2050, and a predefined list of SNAPI calls that are to be made byserver SNAPI module1120. In other examples, certain social networking services1010-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 module2050 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 toserver SNAPI module1120 so as not to delay execution of thesocial networking application1070.
If the call is to be handled locally, inoperation6050, 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 theuser1080 on different social networking services1010-1030. Thus, the SNAPI call facilitates sending messages to other users with connections touser1080 on social networking services1010-1030.
Inoperation6060, 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 module2050 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, theclient SNAPI module2050 communicates the request to theserver SNAPI module1120 on the socialnetworking application service1090 atoperation6070. In some examples, theclient SNAPI module2050 utilizes AJAX to make an HTTP request to the URL address associated with the socialnetworking application service1090. 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 toserver SNAPI module1120 on socialnetworking application service1090 may be used.
One example method showing how the social networking application serviceserver SNAPI module1120 handles SNAPI calls is shown inFIG. 7. The call may be made by theclient SNAPI module2050 on the social networking application atoperation7010. Atoperation7020 theserver SNAPI module1120 receives the SNAPI call. Atoperation7030, theserver SNAPI module1120 determines the appropriate SNAPI translation module to translate the SNAPI calls to the specific social networking API calls in a similar manner to theclient SNAPI module2050 on the social networking application. Atoperation7040, the translation modules translate the SNAPI calls into social network specific API calls. Atoperation7050, theserver SNAPI module1120 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 or XML tags, and the like. Inoperation7060, the SNAPI module on the social networking application service sends any reply from the social networking service back to theclient SNAPI module2050.
FIG. 8 shows one exampleclient SNAPI module2050 of asocial networking application1070.SNAPI call8010 may be passed into theclient SNAPI module2050 and then validated withvalidator8020.Validator8020 validates the parameters of the API call. If the call is invalid, an error may be returned. If the call is valid, then multiplexor8030 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 bytranslator8060. In this case,translator8060 converts the SNAPI calls into JavaScript API calls8070 ofsocial network C1030 and then executes those calls. In other examples, the social networking calls will be made remotely byremote translators8040. In some examples,remote translators8040 pass the SNAPI API calls to the social networking application server via PHP atmodule8050. While calls to social network C in this example are handled locally, and calls to socialnetworking service A1010 andB1020 are handled remotely, in other examples, some calls to socialnetworking service A1010 andB1020 may be handled locally depending on the requested functionality, while some calls forsocial network C1030 may be handled remotely depending on the requested functionality. For example, some user interface API calls for the various social networks A-C1010-1030 may be handled locally bylocal translator8060, while other API calls relating to say, messaging, may be handled remotely byremote translators8040. While two translators are shown inFIG. 8 for simplicity, more may be added to support additional SNAPI calls and additional social networking services.
Turning now toFIG. 9, an exampleserver SNAPI module1120 on the socialnetworking application service1090 is shown. The SNAPI call from thesocial networking application9010 may be multiplexed by themultiplexor9020 into one ormore translators9030,9050. In some examples, onlytranslator9030 will be selected bymultiplexor9020; in other examples, onlytranslator9050 will be selected. In yet other examples, both9030 and9050 will be selected. Eachtranslator9030,9050 then translates the particular SNAPI call into a social network-specific API call9040,9060. These API calls may then be sent to the desired social networking service1010-1030 for processing. As with theclient SNAPI module2050, eachtranslator9030,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 inFIG. 9 for simplicity, more may be added to support additional SNAPI calls and additional social networking services.
In some examples,SNAPI modules2050 and1120 may provide for certain social networking service API functionality. For example,social networking application1070 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, but 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, whenclient SNAPI module2050 loads, it replaces the HTML or XML tags and JavaScript API calls with JavaScript, HTML, or other code that actually implements the provided functionality. In yet other examples,SNAPI module2050 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®, thenSNAPI module2050 would replace the SNAPI XML tag with a FACEBOOK® markup (FBML) tag to implement the multi-friend selector. In other examples, even on social networking services that implement the various user interface “UI” features, theSNAPI module2050 may still use the SNAPI implementation to provide a consistent look and feel to applications across social networking services1010-1030.
Various Other Notes and ExamplesDisclosed 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, causes 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.
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 LogicCertain 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 (e.g., 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 SystemExample 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 (e.g., 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 ImplementationFIG. 10 shows a diagrammatic representation of a machine in the example form of acomputer system10000 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).
Theexample computer system10000 includes a processor10002 (e.g., a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or both), amain memory10001 and astatic memory10006, which communicate with each other via abus10008. Thecomputer system10000 may further include a video display unit10010 (e.g., a Liquid Crystal Display (LCD) or a Cathode Ray Tube (CRT)). Thecomputer system10000 may also include an alphanumeric input device10012 (e.g., a keyboard), a User Interface (UI) cursor controller10014 (e.g., a mouse), adisk drive unit10016, a signal generation device10018 (e.g., a speaker) and a network interface device10020 (e.g., a transmitter). In other examples, the machine may include a touch-sensitive display.
Thedisk drive unit10016 includes a machine-readable medium10022 on which is stored one or more sets ofinstructions10024 and data structures (e.g., 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 themain memory10001 and/or within theprocessor10002 during execution thereof by thecomputer system10000, themain memory10001 and theprocessor10002 also constituting machine-readable media.
Theinstructions10024 may further be transmitted or received over anetwork10026 via thenetwork interface device10020 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 NotesThe 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.