- Basic info of user(id, name, dob, location)
- All groups user joined
- All pages user liked
Before run script, make sure that you have a token and fill it in config/token.js. If not, please go to https://developers.facebook.com/tools/explorer and follow this guild to get a token app. Detail
module.exports = {
token: '&access_token=<your token>',
basic_info: '?fields=id,name,gender,birthday,email,hometown',
pages: '?fields=likes.limit(5000)',
groups: '?fields=groups.limit(5000)',
}
Install the dependencies and start the tool.
$ npm install
$ node fb.js
Data crawled will be saved to data.json file