Skip to content

Instantly share code, notes, and snippets.

@shilpan
Last active December 26, 2015 22:49
Show Gist options
  • Save shilpan/7226247 to your computer and use it in GitHub Desktop.
Save shilpan/7226247 to your computer and use it in GitHub Desktop.
{
"data": {
"personID": "xyz", //Facebook ID
"timeZoneOffset": -330000, //Location based time offset
"timestamp": "Thu, 10 Oct 2013 13:58:45 GMT", //Time of installation
"totalTime": 0, //Totaltime of all closed session (It is recommended you go through all the sessions to add up the actual time)
"userSessions": [ // Array of session. A session ends when there are no FB tabs open.
{
"pageSessions": [ //An array of PageViews with the total time spent on each page.
{
"sessionEnd": 1381431845534, //PageView end timestamp in millisecond since 1 Jan 1970
"sessionStart": 1381431822338 //PageView beginning timestamp in millisecond since 1 Jan 1970
},
{
"sessionEnd": 1381431847983,
"sessionStart": 1381431847981
},
{
"sessionEnd": 1381431847994,
"sessionStart": 1381431847984
},
{
"sessionEnd": 1381431847526,
"sessionStart": 1381431847000
},
{
"sessionEnd": 1381431850243,
"sessionStart": 1381431847995
}
],
"sessionTotalTime": 25982 //Total amount of time spent in that session (Sum of all pageSessions)
}
]
},
"status": "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment