Twitter Add-on
From fringDocumentation
Twitter Add-On Open Source
Twitter is a micro-blogging service with an open API. We have released the Twitter Add-on source code under LGPL license to let developers reuse this code and mashup additional social apps to create social mobile apps.
You are welcome to download the Twitter add-on source code and use it as a template for your add-on.
The following page provides deeper understanding of the Twitter Add-on source code.
We used .NET but it could have been PHP or any other web programming environment.
Description of the Twitter Add-on Highlights
1. Fast client side view switching
In order to provide dynamic and fast GUI, you can build and update add-on screens via the client side add-on logic.
In order to achieve fast client side view switching (from SearchInputView to MyTweetsView) using .NET FAXL SDK these views needs to inherit from BaseGUIForm. Both these views needs to be added to ViewUnion which show controls from the specific sub-views (SearchInputView or MyTweetsView).
The following code snippet demonstrates the usage of ViewUnion. The full code of ViewUnion and its usage can be found at the Twitter Add-on source code
ASP.NET SDK: Press here to see the code.
Client view switching implementation in FAXL. Usually this code is generated by FAXL SDK. Press here to see.
2. Poller – Push new twits notifications to the user
There is a new twits poller thread in twitter add-on implementation that monitors new twits for specific user. When a new tweet arrives the poller send notification to the client (by the CCER“Client Command Execution Request”). In the example below the add-on will send CCER to the client, the CCER will check if Twitter tab is open and will trigger the new twit notification in the server which will then send the appropriate command back to the client.
ASP.NET SDK: Press here to see the code.
FAXL (generated by fring): Press here to see.
3. Dynamic images/icons caching
Allows pre-caching of images/icons that are used by the add-on in order to save download time. The images pre-caching is achieved by sending image control with required image with hidden property. When image/icon will be required it may be used by other visible ImageControl and will be used from the client cache.
ASP.NET SDK: Press here to see the code.
FAXL (generated by fring): Press here to see.
Now, it is recommended to go through the Quick Start Guide in order to get better understanding of fring add-ons deployment.


