Downloads Folloyu Browser Addons and ExtensionsFor DevelopersFolloyu Mobile AppsChange Flash game to Support FolloyuCMS Plugins

 

How many times have you’ been in a situation where you are smack in the middle of considering an online purchase, and you just can’t make up your mind or you are distracted by something else and decide to leave the site. You no longer have to abandon the online purchase process. Now, with a single click, you can move everything you have done to another device so that you can continue the process later, at you leisure.

Watch this short instruction video.

 

Try the Folloyu browser extension, and save time!

Folloyu for Google Chrome
Download
Folloyu for Mozilla Firefox
Download
Folloyu for Apple Safari
Download

 

The Folloyu API allows you to create applications that interact with Folloyu technology.

You can use the Folloyu API to build a fully featured Folloyu client so that your visitors will be able to continue their activity on another device from exactly the same place in the application they were at on the previous device.

 

The API can be used in both free and commercial applications.

Folloyu API Documentation

The following code load Folloyu JavaScript API:

<script type="text/javascript" src="https://www.folloyu.com/folloyuApp/API/1.0/?uid=USER_ID"></script>

USER_ID – registered user's identifier


API Methods

All API methods available in folloyu.API object

saveData(data[, callback, sid])

Store data in Folloyu-server

Parameters

data

object

Data for save

callback

function, optional

Called after data was stored. This function is called with one parameter – object with such fields:

  • success – (boolean) true if data stored successfully

  • sid - session identifier

sid

string, optional

Session identifier (leave empty to start new session)

Example:

folloyu.API.saveData({
    a: 86,
    b: 'text',
    c: [5, 8, -59]
}, function(resp){
    if (resp.success) {
        alert(resp.sid);
    }
}, '2d1c8913169840da8d4c0254f1d95f2b');


getData(callback[, sid])

Returns stored data

Parameters

callback

function

Called after data was received. This function is called with one parameter – object with such fields:

  • success – (boolean) true if data received successfully

  • sid – session identifier

  • data — data

sid

string, optional

ID session identifier. If empty function tries to get it from page URL.

Example:

folloyu.API.getData(function(resp){
    if (resp.success) {
        var data = resp.data;
        alert(resp.sid);
    }
}, '2d1c8913169840da8d4c0254f1d95f2b');


getRestoreSessionId()

Get session identifier from page URL.

Example:

var sid = folloyu.API.getRestoreSessionId();


getQRCodeImgURL(sid)

Get OQ-code image URL

Parameters

sid

string

Session identifier

Example:

var src = folloyu.API.getQRCodeImgURL('2d1c8913169840da8d4c0254f195f2b');


getRestoreURL(sid)

Get URL for restore session

Parameters

sid

string

Session identifier

Example:

var url = folloyu.API.getRestoreURL('2d1c8913169840da8d4c0254f195f2b');


sendEmail(sid, email)

Send email with URL for restore session

Parameters

sid

string

Session identifier

email

string

Email

Example:

var url = folloyu.API.sendEmail('2d1c8913169840da8d4c0254f195f2b', 'mail@example.com');

Flash integration


Install

Download AS3 version of "folloyu" library. Unzip the file and you’ll see a folder named "com" and "swfaddress". Take that “com” folder with all its contents and drop it into the same folder as your FLA file (or if you’re an advanced user, set up a classpath to wherever you want). Make sure that you leave the directory structure inside the "com" folder in-tact; it has a "folloyu" folder with several ActionScript files inside, along with a few subdirectories.

You need to put the "swfaddress" folder on your web server near HTML document witch contains SWF with folloyu library.


Importing

In order for Flash to understand what you mean when you type "folloyu", you must tell it where to find the class file(s). That’s what an import statement does. It acts as a pointer that tells Flash where it should look. After all, there could be a completely different "folloyu" class that another author created, and you need a way to tell Flash which one you’re talking about. Typically you put your import statement at the top of the frame or the custom class you created. And, yes, just like any class, you must add the import statement to all frames or classes that contain code referencing it. This does not add extra kb to your file every time you import it. Flash is smart enough to embed it once and all the import statements just act as a “pointer” to the embedded class.

To import just the "folloyu" class, do:

import com.folloyu.Folloyu;
import com.folloyu.events.FolloyuEvent;

To import all of the classes in the com.folloyu package (don’t worry, Flash will only embed the classes that you actually use in your code), do:

import com.folloyu.*;

To import javascript bridge to your HTML document, do:

<script src="swfaddress/swfaddress.js" language="javascript"></script>


Usage


var folloyuStorage:Folloyu=new Folloyu(); // instance of Folloyu class
folloyuStorage.addEventListener(FolloyuEvent.INIT,_folloyuReady); // create listener, when Folloyu is ready
function _folloyuReady(e:FolloyuEvent){
    var resoredObject:Object=folloyuStorage.restore(); // get object from URL address
}
folloyuStorage.store({username:"Stored user name", score: 100, time: 96}); // store object at URL address


Public Methods of Folloyu class

store(data:Object,secureKey:String="$key%")

Store object encrypted with key at URL address

restore(secureKey:String="$key%")

Restore object from URL address (call it only after Folloyu will be ready)

If you don't have a QR code scanner installed on your mobile device then use Folloyu apps to scan QR barcodes and continue your online session on mobile devices.

Download the app from Android Market or from iTunes.

Folloyu for Wordpress
Download

This is a particularly easy plugin for the most popular open source blogging system. It is extremely easy to install and configure:

1. Download the plugin and upload into your Wordpress folder /wp-content/plugins/wordpress_folloyu_com.php

2. Go to the administrative panel, in the "plugins" section, click "enable" on the folloyu.com plugin.

3. Go to the "settings" section / "Folloyu" and copy/paste the javascript. Save once you are done.

For further information, please view this instructional video

Folloyu for Joomla
Download

1. Download the archive with the plugin.

2. Go to your Joomla admin area > Extensions > Extension Manager > Install, and then under "Upload Package File" upload the file.

3. Go to Extensions > Plug-in Manager. Find the plug-in "Folloyu", open the settings, turn it on, insert the code obtained on our website and save it.

Folloyu for Blogger
Download

Download the plug-in for Blogger websites from here, install, enable and configure it with your Javascript code from your Folloyu account.

Folloyu for Drupal
Download

1. Download the archive with the plugin and unzip it into the folder "modules".

2. Go to your Drupal admin area > "Modules" and activate the module "Folloyu".

3. Go to the settings of the Folloyu module, paste the code obtained on our website and save.

 

Install

Download AS3 version of "folloyu" library. Unzip the file and you’ll see a folder named "com" and "swfaddress". Take that “com” folder with all its contents and drop it into the same folder as your FLA file (or if you’re an advanced user, set up a classpath to wherever you want). Make sure that you leave the directory structure inside the "com" folder in-tact; it has a "folloyu" folder with several ActionScript files inside, along with a few subdirectories.

You need to put the "swfaddress" folder on your web server near HTML document which contains SWF with folloyu library.

 

Importing

In order for Flash to understand what you mean when you type "folloyu", you must tell it where to find the class file(s). That’s what an import statement does. It acts as a pointer that tells Flash where it should look. After all, there could be a completely different "folloyu" class that another author created, and you need a way to tell Flash which one you’re talking about. Typically you put your import statement at the top of the frame or the custom class you created. And, yes, just like any class, you must add the import statement to all frames or classes that contain code referencing it. This does not add extra kb to your file every time you import it. Flash is smart enough to embed it once and all the import statements just act as a “pointer” to the embedded class.

To import just the "folloyu" class, do:

import com.folloyu.Folloyu;
import com.folloyu.events.FolloyuEvent;

To import all of the classes in the com.folloyu package (don’t worry, Flash will only embed the classes that you actually use in your code), do:

import com.folloyu.*;

To import javascript bridge to your HTML document, do:

<script src="swfaddress/swfaddress.js" language="javascript"></script>

 

Usage

var folloyuStorage:Folloyu=new Folloyu(); // instance of Folloyu class
folloyuStorage.addEventListener(FolloyuEvent.INIT,_folloyuReady); // create listener, when Folloyu is ready
function _folloyuReady(e:FolloyuEvent){
var resoredObject:Object=folloyuStorage.restore(); // get object from URL address
}
folloyuStorage.store({username:"Stored user name", score: 100, time: 96}); // store object at URL address

 

Public Methods of Folloyu class

store(data:Object,secureKey:String="$key%")
Store object encrypted with key at URL address
restore(secureKey:String="$key%")
Restore object from URL address (call it only after Folloyu will be ready)