{"id":21735285,"url":"https://github.com/chicks-net/fbdata-forensics","last_synced_at":"2025-10-26T01:36:35.273Z","repository":{"id":70063516,"uuid":"130873278","full_name":"chicks-net/fbdata-forensics","owner":"chicks-net","description":"Facebook data forensics","archived":false,"fork":false,"pushed_at":"2018-12-28T21:13:22.000Z","size":77,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T01:52:35.461Z","etag":null,"topics":["facebook","facebook-data","perl5"],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/chicks-net.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":"2018-04-24T15:10:30.000Z","updated_at":"2024-06-25T02:26:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"439e1c37-779e-4876-9e8e-1015e1b43918","html_url":"https://github.com/chicks-net/fbdata-forensics","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicks-net%2Ffbdata-forensics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicks-net%2Ffbdata-forensics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicks-net%2Ffbdata-forensics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chicks-net%2Ffbdata-forensics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chicks-net","download_url":"https://codeload.github.com/chicks-net/fbdata-forensics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654054,"owners_count":21140235,"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":["facebook","facebook-data","perl5"],"created_at":"2024-11-26T05:12:40.515Z","updated_at":"2025-10-26T01:36:30.241Z","avatar_url":"https://github.com/chicks-net.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facebook data forensics\n\n[![Open Source Love png2](https://badges.frapsoft.com/os/v2/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/)\n[![GPLv2 license](https://img.shields.io/badge/License-GPLv2-blue.svg)](https://github.com/chicks-net/fbdata-forensics/blob/master/LICENSE)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/chicks-net/fbdata-forensics/graphs/commit-activity)\n\nGiven\n[all of](https://www.theguardian.com/news/2018/mar/17/cambridge-analytica-facebook-influence-us-election)\nthe\n[recent](https://www.bbc.com/news/technology-46231284)\nissues\n[around Facebook](https://www.bbc.com/news/technology-43649018)\nand the data it keeps about\n[all of us](https://www.consumerreports.org/digital-security/what-makes-the-facebook-data-breach-so-harmful/)\nit seemed like a good time for a tool to help us analyze the data dump Facebook is\n[willing to give us](https://www.facebook.com/help/1701730696756992?helpref=hc_global_nav).\n\n## Feature Status\n\nWorking:\n\n* show counts of various database records that Facebook keeps about you\n* show how many messages you've sent with each of your Facebook Messenger correspondants\n* search for keywrods in your [Facebook Messenger](https://www.facebook.com/messenger/) history\n\nMore features are [planned](TODO.md).\n\n## Installation\n\nThere are very few dependancies to make this code work.\n\n* Perl 5.x - nothing special or new needed\n* [`JSON::MaybeXS`](https://metacpan.org/pod/JSON::MaybeXS) module and one of the three JSON modules it supports.\n\nTo get this on CentOS 7 I would run:\n\n\tyum install perl-JSON-MaybeXS perl-JSON-XS\n\nIn Debian or Ubuntu this should work:\n\n\tapt-get install libjson-maybexs-perl libjson-xs-perl\n\nOnce you've got that pre-requisite out of the way somehow you need to clone this repo:\n\n\tgit clone https://github.com/chicks-net/fbdata-forensics.git\n\tcd fbdata-forensics\n\n## Using\n\n### Get your data\n\nGet your data [from Facebook](https://www.facebook.com/help/1701730696756992?helpref=hc_global_nav).\nAsk for it as JSON since this tool doesn't process the [HTML flavor](html_v0.1/)\nof the data download.  I've seen reports of the data taking 2-4 hours to be\nready, but for me it took 28 hours:interrobang: :clock1130: :honey_pot: :zzz:\nI hope you aren't in a hurry.\n\n![pick JSON](img/pick_json.png)\n\nFacebook gives you a file like `facebook-username.zip`.\nI would rename it to `facebook-username-YYYMMDD.zip`.  So for me it ends up being `facebook-chicks-20181118.zip`.\n\n### Unpack your data\n\nWithin a copy of this repo create a directory like `data.username`.  For me\n`data.chicks` would be created by\n\n\tmkdir data.chicks\n\nNOTE: Any `data.*` directory will be hard to add to git because it is intentionally in the\n[`.gitignore`](.gitignore).\n\nThen unpack your data into that directory:\n\n\tcd data.chicks\n\tunzip ~/Downloads/facebook-chicks-20181118\n\t# zip, zip, zip\n\tcd ..\n\t# you should be back in the top dir of this repo\n\n### Data overview\n\nTo get a high-level overview run `./json-counts` with a directory of Facebook data prepared\nas mentioned in the previous section.  For example:\n\n\tfbdata-forensics$ ./json-counts data.chicks\n\tdata.chicks looks like a Facebook data dump\n\t- 0 marketplace entries\n\t- 0 saved_items entries\n\t... skipping about_you/face_recognition.json which isn't generic enough for here\n\t... skipping about_you/friend_peer_group.json which isn't generic enough for here\n\t... skipping about_you/your_address_books.json which isn't generic enough for here\n\t- 0 ad interests entries\n\t- 0 advertiser uploaded contact entries\n\t- 4 advertiser touched entries\n\t- 6 installed_apps entries\n\t- 361 app_post entries\n\t- 79 comment entries\n\n### Search messages\n\nEdit the [`keywords.txt`](keywords.txt) file to contain the words to dig for in your messages.\nThen run `./json-messages` with a directory of Facebook data like so:\n\n\tfbdata-forensics$ ./json-messages data.chicks/\n\tdata.chicks/ looks like a Facebook data dump\n\t- 107 conversations found in Facebook Messages\n\t+ 1 messages with Abe Jones (inbox)\n\t$keyword_matches = {};\n\t+ 1 messages with Alex Smith (inbox)\n\t$keyword_matches = {};\n\t+ 6 messages with Bob Smith (inbox)\n\t$keyword_matches = {};\n\t+ 1 messages with Carol Jones (inbox)\n\t$keyword_matches = {};\n\n\n## Support\n\nPlease file [github issues](https://github.com/chicks-net/fbdata-forensics/issues)\nfor things not [already planned](TODO.md).\n\n## Mentions\n\n* [Article](docs/eforensics_article.md) in [December 2018 issue of eForensics](https://eforensicsmag.com/download/social-media-forensics/).\n\n## Author\n\n[Christopher Hicks](http://www.chicks.net)\nis the primary author of this project.  He has gotten\nlots of assistance and wonderful feedback so noone\nis pretending they are doing it all alone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicks-net%2Ffbdata-forensics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchicks-net%2Ffbdata-forensics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchicks-net%2Ffbdata-forensics/lists"}