Git Product home page Git Product logo

fbstats's Introduction

fbstats

facebook messaging statistics. See screenshots below for sample output. Also supports downloading your entire messaging history as CSV.

(Anonymized) sample output

version 1, stacked, weekly, log scale: sample version 2, in/out separate, weekly, linear scale: sample2 version 2, two people sample2 Usage

You can use the version hosted at http://phiresky.github.io/fbstats/ As the API from facebook is in beta, you will need to be facebook developer and create an "app" for this to work.

As of 2014-04-30 facebook added new restrictions to their api. The parts I use are now deprecated, facebook might remove the endpoint in the future.

As of 2014-08-07 (v2.1) facebook removed the ability to access the FQL message endpoint. Apps created after that date will not work. The new method of accessing the data is far too slow for this purpose. (see issue 6)

Detailed App creation instructions

  1. Go to https://developers.facebook.com/ and become a developer
  2. Create a new app
    create app
  3. Settings -> Add Platform -> Website. Site URL: http://github.io/
  4. App Domains: phiresky.github.io
  5. It should look like this:
    scrernshert
  6. Go to http://phiresky.github.io/fbstats/ and put in your app id. Voilà!

Code

As I didn't plan this to be public, the code is really ugly and probably hard to understand, if you have questions just ask. But it's valid HTML5, yay!

The already downloaded message timestamps (Statistics.threads) will be stored locally, so they are cached when the page is refreshed.

Todo

I'm not implying I will actually do these, but well

  • Restructure code. It's a mess, you can't even find the entry point. It is now TypeScript and in multiple files.
  • Support time range selection and zooming like this
  • Rewrite "Other" calculation Should be better
  • Support import of messages.html from facebook data download
  • Support downloading messages themselves for viewing excerpts and extended analysis Works now, complete data is downloadable as CSV.
  • ...

fbstats's People

Contributors

phiresky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fbstats's Issues

}ERR:no permission

after not getting it working checking the diagnostics.html i get this

}/me/permissions
{
"data": [
{
"permission": "public_profile",
"status": "granted"
},
{
"permission": "read_mailbox",
"status": "granted"
}
]
}ERR:no permission

any idea why?

FQL no longer works.

Facebook deprecated the FQL Api in version v2.0 and removed it completely in v2.1. This means this no longer works if the "app" is created after Aug 2014.

The newer Api limits the message loading to 25 messages per request (20x slower) and blocks after very few calls, making it almost impossible to get >10k messages.

If anybody has an idea to fix this, feel free to comment.

Can't open

First of all I would like to say that your app had helped me too much, but the last month I can;t use it. I enter the site i put my id i do all the thinks as you say but i'm not able to see the statistics, its keep been in a loop for ever saying Checking permissions , plss i want help, your app is mandatory i would even pay for that app.

Thank your for your precious time

Is it possible to host this on GitHub?

Is it possible to use GitHub Pages to host this? It's a static site, so that should be possible. It would be awesome if it prompted the user for an appid before starting, that way, we could all use the same hosted application. A small set of instructions on how to create a new app would be helpful before prompting the user to enter their appid. I created one, but I get an "Error 101: Invalid API key". This would make it really easy for new users to create a graph without hosting the code themselves. What do you think?

Request

Will it ever be possible to manage to download all photos to along with the csv?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.