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
Post a Comment