Git Product home page Git Product logo

fbg-stats's Introduction

FBG Stats

A simple node script that provides you statistics about your facebook group, currently the script provides you information regarding your top group posters. Due to the lack of data provided by the facebook API the script is not 100% accurate.

Usage

  1. Clone repository
  2. Run npm install
  3. Rename .env.example to .env
  4. Change the GROUP_ID to the id of the group you want to retrieve the statistics from Note: You should be a member of the group.
  5. Specify your facebook access token, you can get it from here https://developers.facebook.com/tools/explorer/ the permission user_managed_groups is required.
  6. Specify what kind of output you want to have, the current version supports a CLI table output as seen in the demo gif. As well as CSV file output.
  7. Run node dist/index.js in your terminal.
  8. Enjoy.

Note: The script does not support private facebook groups, at the time being

Demonstration

alt Demo gif

fbg-stats's People

Contributors

kreshnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fbg-stats's Issues

TypeError: Cannot read property 'id' of undefined

/ Fetching posts: 400C:\xxx\fbg-stats\dist\index.js:35188
posts.push(new _Post2.default(post.from.id));
^

TypeError: Cannot read property 'id' of undefined
at C:\xxx\fbg-stats\dist\index.js:35188:56
at Array.forEach (native)
at Function. (C:\xxx\fbg-stats\dist\index.js:35187:29)
at Graph.end (C:\xxx\fbg-stats\dist\index.js:44641:8)
at Request._callback (C:\xxx\fbg-stats\dist\index.js:44669:10)
at Request.self.callback (C:\xxx\fbg-stats\dist\index.js:62092:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (C:\xxx\fbg-stats\dist\index.js:63075:10)
at emitOne (events.js:96:13)

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.