{"id":17006163,"url":"https://github.com/mingweisamuel/cdt-ranks","last_synced_at":"2026-04-12T20:56:48.076Z","repository":{"id":78441130,"uuid":"49935364","full_name":"MingweiSamuel/cdt-ranks","owner":"MingweiSamuel","description":"for ranking users in a Facebook group","archived":false,"fork":false,"pushed_at":"2017-05-01T15:49:40.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T10:43:30.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MingweiSamuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-19T07:41:30.000Z","updated_at":"2017-05-11T20:41:54.000Z","dependencies_parsed_at":"2023-04-23T07:06:26.644Z","dependency_job_id":null,"html_url":"https://github.com/MingweiSamuel/cdt-ranks","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.6,"last_synced_commit":"769c888bab338c7f58ee52f210f9f49d6ec315b7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2Fcdt-ranks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2Fcdt-ranks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2Fcdt-ranks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MingweiSamuel%2Fcdt-ranks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MingweiSamuel","download_url":"https://codeload.github.com/MingweiSamuel/cdt-ranks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945591,"owners_count":20536296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T05:05:08.910Z","updated_at":"2026-04-12T20:56:43.029Z","avatar_url":"https://github.com/MingweiSamuel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdt-ranks\nfor ranking users in a Facebook group\n\n## How to use\n\n### 1: clone repo\n    git clone https://github.com/MingweiSamuel/cdt-ranks.git\n\n### 2: update npm\n    npm update\n\n### 3: set settings\n    cp settings.example.json settings.json\ndo the setting-setting by setting the settings:\n\n    {\n      \"token\": \"\u003cgraph api token here\u003e\",\n      \"groupid\": \"2204685680\",\n      \"timeframe\": \"-1 week\"\n    }\n`token` is the graph api token\n`groupid` is the id of the facebook group\n`timeframe` is a unix timestamp or [`strtotime`](http://www.w3schools.com/php/func_date_strtotime.asp) string.\n\n### 4: (optional) change the math in rank.js\n\nat the bottom of `rank.js` are two functions called `scorePost` and `scoreComment`. Change them to be cooler, if you want.\n\n### 5: run the thing\n\n    node rank.js\n\n### 6: pls give apka whatsapp number kya hai jai hind\n\n    #thank\n\n## How to get the tokens\nGo to: https://developers.facebook.com/tools/explorer/?method=GET\u0026path=me%3Ffields%3Dgroups\u0026version=v2.9\n\nThis should fill in the necessary fields if you're already logged into Facebook.\n\nFirst generate a token by pressing `Get Token`. A prompt will appear to ask you which permissions you'd like to associate with this token. Select `user_managed_groups` at minimum, you may need to select additional permissions if you receive an error after executing `rank.js`.\n\nOnce you've gotten a token, press the `Submit` button to get the IDs for the groups you administer.\n\nUse these IDs as described in step 3.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingweisamuel%2Fcdt-ranks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingweisamuel%2Fcdt-ranks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingweisamuel%2Fcdt-ranks/lists"}