Inputs are read from sync-fb
queue, and outputs are written to cache
queue.
Input:
{
"type": "page",
"payload": {
"id": "1234567890"
}
}
Output:
{
"source": "sync-fb",
"type": "page",
"payload": {
"id": "1234597890",
"name": "",
"description": "",
"albums": [
{
"id": "",
"name": "",
"description": ""
}
]
}
}
Input:
{
"type": "photos",
"payload": {
"id": "1234597890"
}
}
Output:
{
"type": "fb.photos",
"payload": {
"photos": [
{
"id": "",
"description": "",
"likes": 250,
"sources": [
{ },
{ }
]
},
{
"id": "",
"description": "",
"likes": 323,
"sources": [
{ },
{ }
]
}
]
}
}