real time updates - Facebook realtime.. How are different objects batched together -


facebook realtime docs specify callback data of following format

{   "object": "user",   "entry": [     {       "uid": 1335845740,       "changed_fields": [       "name",       "picture"       ],      "time": 232323     }, {       "uid": 1234,       "changed_fields": [       "friends"       ],       "time": 232325 }]} 

if 2 different objects, 'user' , 'page' sent back, facebook

  • batch them together?
  • send them separately?

different objects sent in different requests. if there many user requests batch user requests , send it. , can have different end points user , page. format of page request different. looks this

{     "object": "page",     "entry": [         {             "id": "408518775908252",             "time": 1360643280,             "changes": [                 {                     "field": "feed",                     "value": {                         "item": "like",                         "verb": "add",                         "user_id": 5900878                     }                 }             ]         }     ] } 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -