
The faCeTalk Online web service is integrated into your dating application in 2 separate components. The first component is the Schedule Date screen. The second component is the Change Date/Start Date screen. Click on the Demo tab in order to experience the flow of the faCeTalk Online web service. You can always do a View Source by right-clicking on the page and see how the below code examples are actually embedded in the working demo.
It is best to look at an example of code for integrating the Schedule Date component. For this example, we are coding in PHP, but you would use whatever server-side scripting language that you are currently using on your dating site. For ease of understanding, we will be color coding the explanation of the code and the code itself in matching colors.
The first 3 lines of code below and the closing brace, }, is used to tell the webserver to show the following only if this is not a POST to the server.
Inside this conditional, you must display your text input field/options list widget (for which you use to select a target user). In other words, we need you to code a widget (most likely copied from your To: input field for which you use in your email widget). You use this for retrieving the toUserID and toEmailAddress which we will need for sending to the Schedule Date web service. You will also need to have the fromUserID and fromEmailAddress embedded in your form. You likely will use a hidden field for the toEmailAddress, fromUserID, and fromEmailAddress as only the choice of toUserID needs to be displayed to the user. Note that for demo purposes only, our input widget, enclosed in the below form, is simply 4 text boxes.
The first 3 lines of code below and the closing brace, }, is used to tell the webserver to process the following code only if this is a POST to the server.
The code inside this conditional processes the POST when the user has pressed the Schedule Date button. It takes the input from the user from the POSTed form and sets a few extra variables.
The first 3 lines of code below and the closing brace, }, is used to tell the webserver to display the following code only if this is a POST to the server.
The code inside this conditional displays an iframe. The iframe sources in the Online FaceTalk web service sending it the collected parameters.
The Change Date/Start Date screen is accessed via a URL link sent through an email. The server-side conditional code that surrounds the iframe is very similar to that of the Schedule Date code above. All parameters are sent in as part of the URL link. The iframe sources-in the Online FaceTalk web service in the same way.