You can add a “Tweet this” link to your DataPage to allow your end-users to update their status on Twitter directly from your app. You can pass parameters directly from Caspio to the status message. This article shows you how to add a “Tweet this” link as well as how to automatically hash tag a keyword in the tweet.

Add_a_tweetthis_link_to_your_DataPage

Steps to adding a “Tweet this” link

1. Copy and paste the “Tweet this” link HTML into your DataPage.

You can copy the HTML for a “Tweet this” image link from the bottom of the page. Include this link wherever you enter HTML including headers, footers, and HTML blocks. It is especially suitable to be included in a confirmation message, as this is an appropriate time for an end-user to update their Twitter status.

<a href="http://twitter.com/home?status=%23Keyword Message" title="Click to tweet!" target="_blank"><img src="http://twitter-badges.s3.amazonaws.com/t_logo-a.png" Border="0" alt="Tweet this!"/></a>

2. Replace the message

Two sections in the sample “Tweet this” link must be replaced. The “Keyword” and “Message” texts (in red text) should be updated to match your website. The keyword is automatically hash tagged so that Twitter users can easily follow and see real time usage (http://www.hashtags.org/) of that keyword. Be sure you do not use a keyword that is already used in another conversation. You can also add parameters to the tweet to make it dynamic, as in this example:

Add_a_tweetthis_link_to_your_DataPage

You could also simply delete both sections and allow your end-user to write their own tweet. If you choose to delete both sections, remember to also remove the “%23” as this is the HTML character for the hash symbol (#).

3. Change the image icon (optional)

You can also replace the image source in the sample link (in green text) with another image on your server. There are many Twitter icons available for free. Be sure to check the licensing.

 

Note Please note: This article uses external HTML, JavaScript, or third-party solutions to add functionality outside of Caspio Bridge’s standard feature set. These solutions are provided “as is” without warranty, support or guarantee. The code within this article is provided as a sample to assist you in the customization of your web applications. You may need a basic understanding of HTML and JavaScript to implement successfully.