Skip to content

Latest commit

 

History

History
78 lines (70 loc) · 948 Bytes

README.md

File metadata and controls

78 lines (70 loc) · 948 Bytes

ms-sync-fb

Recognised messages

Inputs are read from sync-fb queue, and outputs are written to cache queue.

Sync page:

Input:

{
  "type": "page",
  "payload": {
    "id": "1234567890"
  }
}

Output:

{
  "source": "sync-fb",
  "type": "page",
  "payload": {
    "id": "1234597890",
    "name": "",
    "description": "",
    "albums": [
      {
        "id": "",
        "name": "",
        "description": ""
      }
    ]
  }
}

Sync photos:

Input:

{
  "type": "photos",
  "payload": {
    "id": "1234597890"
  }
}

Output:

{
  "type": "fb.photos",
  "payload": {
    "photos": [
      {
        "id": "",
        "description": "",
        "likes": 250,
        "sources": [
          { },
          { }
        ]
      },
      {
        "id": "",
        "description": "",
        "likes": 323,
        "sources": [
          { },
          { }
        ]
      }
    ]
  }
}