README

How it works

 instal.com                bot.instal.com                fb.freapp.com             user terminal
+----+---------------------------+----------------------------+--------------------------+-------+
     |                           |                            |                          |
     |        redirect           |                            |                          |
     +-------------------------> |                            |                          |
     |                           |         redirect           |                          |
     |                           +--------------------------> |                          |
     |                           |   send welcome with image  |                          |
     |                           | <--------------------------|                          |
     |                           |                fowrard message with image             |
     |                           +-----------------------------------------------------> |
     |                           |                     open image in welcome             |
     |                           | <--------------------------+--------------------------+
     |       postback uid        |                            |                          |
     | <-------------------------+                            |                          |
     |                           |                            |                          |

User Marker services

Url to handle campaign redirect this will not handle the targeting part that part is commissioned to instal.com because this is not the place where it should be done

http://bot.instal.com/proxy/{instal_bot_app_id}/redirect/?click_id={click_id}

This will redirect the user to : fb://messaging/1234567890/


Pixle url that can be used on landing pages to make us count the conversions, currently DEPRECATED because not tracking on instal.com

http://bot.instal.com/proxy/{instal_bot_app_id}/pixel.js

Conversion Marker services

Proxy url to handler communications with the facebook bot that will allow us to track the eventual conversion

http://bot.instal.com/proxy/{instal_bot_app_id}/graph.facebook.com/v2.6/me/messages?access_token={access_token}

Image url that will redirect the images to the correct content after we tracked the eventual conversion

http://bot.instal.com/proxy/{instal_bot_app_id}/image/?redirect={image_url}